Merge pull request #97790 from Infinisil/release-nixpkgsArgs

release*: Support nixpkgsArgs for all release-*.nix files
This commit is contained in:
Graham Christensen 2020-09-16 09:17:02 -04:00 committed by GitHub
commit 6e98b8ff93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View File

@ -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;

View File

@ -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

View File

@ -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; };
{