Skip to content

Commit

Permalink
Merge pull request #97790 from Infinisil/release-nixpkgsArgs
Browse files Browse the repository at this point in the history
release*: Support nixpkgsArgs for all release-*.nix files
  • Loading branch information
grahamc committed Sep 16, 2020
2 parents ec5e9b6 + c1e96ff commit 6e98b8f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion pkgs/top-level/release-cross.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
supportedSystems ? [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" ]
, # Strip most of attributes when evaluating to spare memory usage
scrubJobs ? true
, # Attributes passed to nixpkgs. Don't build packages marked as unfree.
nixpkgsArgs ? { config = { allowUnfree = false; inHydra = true; }; }
}:

with import ./release-lib.nix { inherit supportedSystems scrubJobs; };
with import ./release-lib.nix { inherit supportedSystems scrubJobs nixpkgsArgs; };

let
nativePlatforms = all;
Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/release-python.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@

{ # The platforms for which we build Nixpkgs.
supportedSystems ? [ "x86_64-linux" ]
, # Attributes passed to nixpkgs. Don't build packages marked as unfree.
nixpkgsArgs ? { config = { allowUnfree = false; inHydra = true; }; }
}:

with import ./release-lib.nix {inherit supportedSystems; };
with import ./release-lib.nix {inherit supportedSystems nixpkgsArgs; };
with lib;

let
Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/release-small.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@

{ nixpkgs ? { outPath = (import ../../lib).cleanSource ../..; revCount = 1234; shortRev = "abcdef"; }
, supportedSystems ? [ "x86_64-linux" "x86_64-darwin" ]
, # Attributes passed to nixpkgs. Don't build packages marked as unfree.
nixpkgsArgs ? { config = { allowUnfree = false; inHydra = true; }; }
}:

with import ./release-lib.nix { inherit supportedSystems; };
with import ./release-lib.nix { inherit supportedSystems nixpkgsArgs; };

{

Expand Down

0 comments on commit 6e98b8f

Please sign in to comment.