From 35f81d479e7d333aa6491a7b2c07b6ea67fd772c Mon Sep 17 00:00:00 2001 From: Jean-Pierre PRUNARET Date: Sat, 22 Oct 2016 17:06:25 +0200 Subject: [PATCH] add release.nix --- release.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 release.nix diff --git a/release.nix b/release.nix new file mode 100644 index 0000000..af0347c --- /dev/null +++ b/release.nix @@ -0,0 +1,33 @@ +{ nixpkgs ? +#, systems ? [ "i686-linux" "x86_64-linux" "x86_64-darwin" ] +, systems ? [ "x86_64-linux" ] +}: + +let + pkgs = import nixpkgs {}; + + version = "2016-10-22-v1"; + + jobset = import ./blog-gallery.nix { + inherit pkgs; + system = builtins.currentSystem; + }; +in + rec { + inherit (jobset) tarball; + + package = pkgs.lib.genAttrs systems (system: + (import ./blog-gallery.nix { + pkgs = import nixpkgs { inherit system; }; + inherit system; + }).package + ); + + release = pkgs.releaseTools.aggregate { + name = "perso-${version}"; + constituents = [ + tarball + ] + ++ map (system: builtins.getAttr system package) systems + }; + }