mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
This attribute was supposed to be set on derivations, to make the
release tools recurse into them. The remaining uses were all on regular
attrsets, though, so this is safe to remove.
(cherry picked from commit d0c0b875f7)
27 lines
694 B
Nix
27 lines
694 B
Nix
# cd nixpkgs
|
|
# nix-build -A tests.pkg-config
|
|
{
|
|
lib,
|
|
config,
|
|
stdenv,
|
|
...
|
|
}:
|
|
|
|
let
|
|
# defaultPkgConfigPackages test needs a Nixpkgs with allowUnsupportedPlatform
|
|
# in order to filter out the unsupported packages without throwing any errors
|
|
# tryEval would be too fragile, masking different problems as if they're
|
|
# unsupported platform problems.
|
|
allPkgs = import ../default.nix {
|
|
system = stdenv.hostPlatform.system;
|
|
localSystem = stdenv.buildPlatform.system;
|
|
config = config // {
|
|
allowUnsupportedSystem = true;
|
|
};
|
|
overlays = [ ];
|
|
};
|
|
in
|
|
lib.recurseIntoAttrs {
|
|
defaultPkgConfigPackages = allPkgs.callPackage ./test-defaultPkgConfigPackages.nix { };
|
|
}
|