2023-01-29 07:54:13 +00:00
|
|
|
# cd nixpkgs
|
|
|
|
# nix-build -A tests.pkg-config
|
|
|
|
{ lib, 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;
|
2023-05-13 04:55:00 +00:00
|
|
|
localSystem = stdenv.buildPlatform.system;
|
2023-01-29 07:54:13 +00:00
|
|
|
config = {
|
|
|
|
allowUnsupportedSystem = true;
|
|
|
|
};
|
|
|
|
overlays = [];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
lib.recurseIntoAttrs {
|
|
|
|
defaultPkgConfigPackages = allPkgs.callPackage ./test-defaultPkgConfigPackages.nix { };
|
|
|
|
}
|