diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-03-15 13:18:49 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-03-15 13:18:49 +0100 |
commit | 78d777ca15a5212bef7d6674adf0ed1abadce883 (patch) | |
tree | cf00adf646536507ced2c90938914d4862288975 /release.nix | |
parent | a68ebf8e376a2f712cb7b00442e66c0c416026b4 (diff) |
Remove the "system" jobset input
Diffstat (limited to 'release.nix')
-rw-r--r-- | release.nix | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/release.nix b/release.nix index 5b38fc1c6..58dfac8d7 100644 --- a/release.nix +++ b/release.nix @@ -1,15 +1,19 @@ -{ nixpkgs ? <nixpkgs> -, nix ? { outPath = ./.; revCount = 1234; shortRev = "abcdef"; } +{ nix ? { outPath = ./.; revCount = 1234; shortRev = "abcdef"; } , officialRelease ? false }: let + pkgs = import <nixpkgs> {}; + + systems = [ "x86_64-linux" "i686-linux" "x86_64-darwin" "x86_64-freebsd" "i686-freebsd" "i686-cygwin" "i686-solaris" ]; + + jobs = rec { tarball = - with import nixpkgs {}; + with pkgs; releaseTools.sourceTarball { name = "nix-tarball"; @@ -72,10 +76,9 @@ let }; - build = - { system ? "x86_64-linux" }: + build = pkgs.lib.genAttrs systems (system: - with import nixpkgs { inherit system; }; + with import <nixpkgs> { inherit system; }; releaseTools.nixBuild { name = "nix"; @@ -99,15 +102,16 @@ let installFlags = "sysconfdir=$(out)/etc"; doInstallCheck = true; - }; + }); + - binaryTarball = + binaryTarball = pkgs.lib.genAttrs systems (system: { system ? "x86_64-linux" }: - with import nixpkgs { inherit system; }; + with import <nixpkgs> { inherit system; }; let - toplevel = build { inherit system; }; + toplevel = builtins.getAttr system jobs.build; version = toplevel.src.version; in @@ -130,11 +134,11 @@ let --transform "s,$TMPDIR/install,/usr/bin/nix-finish-install," \ --transform "s,$TMPDIR/reginfo,/nix/store/reginfo," \ $TMPDIR/install $TMPDIR/reginfo $storePaths - ''; + ''); coverage = - with import nixpkgs { system = "x86_64-linux"; }; + with import <nixpkgs> { system = "x86_64-linux"; }; releaseTools.coverageAnalysis { name = "nix-build"; @@ -205,7 +209,7 @@ let makeRPM = system: diskImageFun: prio: - with import nixpkgs { inherit system; }; + with import <nixpkgs> { inherit system; }; releaseTools.rpmBuild rec { name = "nix-rpm"; @@ -224,7 +228,7 @@ let makeDeb = system: diskImageFun: prio: - with import nixpkgs { inherit system; }; + with import <nixpkgs> { inherit system; }; releaseTools.debBuild { name = "nix-deb"; |