mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 08:39:08 +03:00
pkgs/top-level/release.nix: add attrNamesOnly option
This commit is contained in:
parent
554a6a28a4
commit
02a2822def
@ -37,9 +37,23 @@
|
|||||||
"openssl-1.1.1w"
|
"openssl-1.1.1w"
|
||||||
];
|
];
|
||||||
}; }
|
}; }
|
||||||
|
|
||||||
|
# This flag, if set to true, will inhibit the use of `mapTestOn`
|
||||||
|
# and `release-lib.packagePlatforms`. Generally, it causes the
|
||||||
|
# resulting tree of attributes to *not* have a ".${system}"
|
||||||
|
# suffixed upon every job name like Hydra expects.
|
||||||
|
#
|
||||||
|
# This flag exists mainly for use by
|
||||||
|
# pkgs/top-level/release-attrnames-superset.nix; see that file for
|
||||||
|
# full details. The exact behavior of this flag may change; it
|
||||||
|
# should be considered an internal implementation detail of
|
||||||
|
# pkgs/top-level/.
|
||||||
|
#
|
||||||
|
, attrNamesOnly ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with import ./release-lib.nix { inherit supportedSystems scrubJobs nixpkgsArgs; };
|
let release-lib = import ./release-lib.nix { inherit supportedSystems scrubJobs nixpkgsArgs; }; in
|
||||||
|
with release-lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
@ -239,9 +253,9 @@ let
|
|||||||
# 'nonPackageAttrs' and jobs pulled in from 'pkgs'.
|
# 'nonPackageAttrs' and jobs pulled in from 'pkgs'.
|
||||||
# Conflicts usually cause silent job drops like in
|
# Conflicts usually cause silent job drops like in
|
||||||
# https://github.com/NixOS/nixpkgs/pull/182058
|
# https://github.com/NixOS/nixpkgs/pull/182058
|
||||||
jobs = lib.attrsets.unionOfDisjoint
|
jobs = let
|
||||||
nonPackageJobs
|
packagePlatforms = if attrNamesOnly then lib.id else release-lib.packagePlatforms;
|
||||||
(mapTestOn ((packagePlatforms pkgs) // {
|
packageJobs = {
|
||||||
haskell.compiler = packagePlatforms pkgs.haskell.compiler;
|
haskell.compiler = packagePlatforms pkgs.haskell.compiler;
|
||||||
haskellPackages = packagePlatforms pkgs.haskellPackages;
|
haskellPackages = packagePlatforms pkgs.haskellPackages;
|
||||||
# Build selected packages (HLS) for multiple Haskell compilers to rebuild
|
# Build selected packages (HLS) for multiple Haskell compilers to rebuild
|
||||||
@ -275,6 +289,14 @@ let
|
|||||||
darwin = packagePlatforms pkgs.darwin // {
|
darwin = packagePlatforms pkgs.darwin // {
|
||||||
xcode = {};
|
xcode = {};
|
||||||
};
|
};
|
||||||
} ));
|
};
|
||||||
|
mapTestOn-packages =
|
||||||
|
if attrNamesOnly
|
||||||
|
then pkgs // packageJobs
|
||||||
|
else mapTestOn ((packagePlatforms pkgs) // packageJobs);
|
||||||
|
in
|
||||||
|
lib.attrsets.unionOfDisjoint
|
||||||
|
nonPackageJobs
|
||||||
|
mapTestOn-packages;
|
||||||
|
|
||||||
in jobs
|
in jobs
|
||||||
|
Loading…
Reference in New Issue
Block a user