Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1# cd nixpkgs
2# nix-build -A tests.pkg-config
3{
4 lib,
5 config,
6 stdenv,
7 ...
8}:
9
10let
11 # defaultPkgConfigPackages test needs a Nixpkgs with allowUnsupportedPlatform
12 # in order to filter out the unsupported packages without throwing any errors
13 # tryEval would be too fragile, masking different problems as if they're
14 # unsupported platform problems.
15 allPkgs = import ../default.nix {
16 system = stdenv.hostPlatform.system;
17 localSystem = stdenv.buildPlatform.system;
18 config = config // {
19 allowUnsupportedSystem = true;
20 };
21 overlays = [ ];
22 };
23in
24lib.recurseIntoAttrs {
25 defaultPkgConfigPackages = allPkgs.callPackage ./test-defaultPkgConfigPackages.nix { } // {
26 __recurseIntoDerivationForReleaseJobs = true;
27 };
28}