release(-lib).nix: add nixpkgsArgs parameter
This allows customizing the nixpkgs arguments by the caller. My use case is creating a personal nixpkgs channel containing some unfree packages. The default is still to not build unfree packages, so for nixpkgs this is no functional change.
This commit is contained in:
parent
e8351fd305
commit
d45df036c3
@ -1,17 +1,15 @@
|
|||||||
{ supportedSystems
|
{ supportedSystems
|
||||||
, packageSet ? (import ../..)
|
, packageSet ? (import ../..)
|
||||||
, scrubJobs ? true
|
, scrubJobs ? true
|
||||||
|
, # Attributes passed to nixpkgs. Don't build packages marked as unfree.
|
||||||
|
nixpkgsArgs ? { config = { allowUnfree = false; inHydra = true; }; }
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with import ../../lib;
|
with import ../../lib;
|
||||||
|
|
||||||
rec {
|
rec {
|
||||||
|
|
||||||
# Ensure that we don't build packages marked as unfree.
|
allPackages = args: packageSet (args // nixpkgsArgs);
|
||||||
allPackages = args: packageSet (args // {
|
|
||||||
config.allowUnfree = false;
|
|
||||||
config.inHydra = true;
|
|
||||||
});
|
|
||||||
|
|
||||||
pkgs = pkgsFor "x86_64-linux";
|
pkgs = pkgsFor "x86_64-linux";
|
||||||
|
|
||||||
|
@ -15,9 +15,11 @@
|
|||||||
supportedSystems ? [ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" ]
|
supportedSystems ? [ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" ]
|
||||||
, # Strip most of attributes when evaluating to spare memory usage
|
, # Strip most of attributes when evaluating to spare memory usage
|
||||||
scrubJobs ? true
|
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
|
let
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user