summaryrefslogtreecommitdiffstats
path: root/pkgs/top-level/pkg-config/tests.nix
blob: 4f3e6c8fb7cfdff74ee933f44f6210590925d980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 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 { };
}