From 20f91092e56d8a17d1f54f79d4b3e6f02481c577 Mon Sep 17 00:00:00 2001 From: Jean-Pierre PRUNARET Date: Sat, 31 Dec 2016 14:52:09 +0100 Subject: [PATCH] ajout de master pour le site de teleragno --- github-teleragno-www-MASTER.nix | 22 ++++++++++++++++++++++ release.nix | 3 ++- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 github-teleragno-www-MASTER.nix diff --git a/github-teleragno-www-MASTER.nix b/github-teleragno-www-MASTER.nix new file mode 100644 index 0000000..a169c72 --- /dev/null +++ b/github-teleragno-www-MASTER.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="master"; + 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 = "1lmbvqz9d2yjs5xwbx0h7pzq8sxw182fzcv6hsfma4dk970lkk88"; + }; + + installPhase = "cp -R . \$out"; + + meta = with stdenv.lib; { + maintainers = [ "Jean-Pierre PRUNARET " ]; + platforms = platforms.linux; + }; +} diff --git a/release.nix b/release.nix index 28380de..260446d 100644 --- a/release.nix +++ b/release.nix @@ -14,7 +14,8 @@ with (import { inherit supportedSystems #jpierre03.osm2pgsql = import ./osm2pgsql.nix; - teleragno.www = import ./github-teleragno-www.nix; + teleragno.www.tag = import ./github-teleragno-www.nix; + teleragno.www.MASTER = import ./github-teleragno-www-MASTER.nix; } /* // { # Simply assign a derivation to an attribute to have it built.