about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-03-26 13:12:25 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-03-26 13:12:25 +0100
commitc5f45036e6653f9855f5b05f2a43e05ea072fde2 (patch)
treeef1bcf93db29cddc6af742b5954b7fba3d024b1c
parentf135b6e53024e6fa4e808452edf83507c073b0a9 (diff)
release-lib.nix: Make the set of supported platforms an argument
-rw-r--r--pkgs/top-level/release-cross.nix2
-rw-r--r--pkgs/top-level/release-lib.nix6
-rw-r--r--pkgs/top-level/release.nix4
3 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/top-level/release-cross.nix b/pkgs/top-level/release-cross.nix
index 8af1ca90267a7..2c688ea71bdc1 100644
--- a/pkgs/top-level/release-cross.nix
+++ b/pkgs/top-level/release-cross.nix
@@ -1,4 +1,4 @@
-with (import ./release-lib.nix);
+with import ./release-lib.nix { supportedSystems = []; };
 let
   nativePlatforms = linux;
 
diff --git a/pkgs/top-level/release-lib.nix b/pkgs/top-level/release-lib.nix
index 5b7e830a2f19f..5052a41a96cfa 100644
--- a/pkgs/top-level/release-lib.nix
+++ b/pkgs/top-level/release-lib.nix
@@ -1,3 +1,5 @@
+{ supportedSystems }:
+
 rec {
 
   # Ensure that we don't build packages marked as unfree.
@@ -8,10 +10,6 @@ rec {
   pkgs = allPackages { system = "x86_64-linux"; };
 
 
-  # The platforms for which we build Nixpkgs.
-  supportedSystems = [ "x86_64-linux" "i686-linux" "x86_64-darwin" "x86_64-freebsd" "i686-freebsd" ];
-
-
   /* !!! Hack: poor man's memoisation function.  Necessary to prevent
      Nixpkgs from being evaluated again and again for every
      job/platform pair. */
diff --git a/pkgs/top-level/release.nix b/pkgs/top-level/release.nix
index ad027cd93460d..a3902b8daa8ce 100644
--- a/pkgs/top-level/release.nix
+++ b/pkgs/top-level/release.nix
@@ -11,9 +11,11 @@
 
 { nixpkgs ? { outPath = (import ./all-packages.nix {}).lib.cleanSource ../..; revCount = 1234; shortRev = "abcdef"; }
 , officialRelease ? false
+, # The platforms for which we build Nixpkgs.
+  supportedSystems ? [ "x86_64-linux" "i686-linux" "x86_64-darwin" "x86_64-freebsd" "i686-freebsd" ]
 }:
 
-with import ./release-lib.nix;
+with import ./release-lib.nix { inherit supportedSystems; };
 
 let