diff --git a/github-teleragno-www.nix b/github-teleragno-www.nix new file mode 100644 index 0000000..0b01e20 --- /dev/null +++ b/github-teleragno-www.nix @@ -0,0 +1,22 @@ +# https://www.mpscholten.de/nixos/2016/07/07/private-github-repositories-and-nixos.html +# https://nixos.org/wiki/FAQ#How_do_I_know_the_sha256_to_use_with_fetchgit.3F + +with import {}; + +stdenv.mkDerivation rec { + version="2016-03-21"; + name = "github-teleragno-www-${version}"; + + # liste des fonction de récup : fetch* https://github.com/NixOS/nixpkgs/tree/master/pkgs/build-support + src = fetchurl { + url = "https://github.com/teleragno/teleragno.github.io/archive/${version}.tar.gz"; + sha256 = "01v03f4fr3rynfrwqgpz5bxf5n1faz4px3hxvd0y73h74c76g5an"; + }; + + installPhase = "cp -R . \$out"; + + meta = with stdenv.lib; { + maintainers = [ "Jean-Pierre PRUNARET " ]; + platforms = platforms.linux; + }; +} diff --git a/release.nix b/release.nix index fc0d7d5..28380de 100644 --- a/release.nix +++ b/release.nix @@ -14,6 +14,8 @@ with (import { inherit supportedSystems #jpierre03.osm2pgsql = import ./osm2pgsql.nix; + teleragno.www = import ./github-teleragno-www.nix; + } /* // { # Simply assign a derivation to an attribute to have it built. hello_world_1 = pkgs_x86_64_linux.hello;