tests.pkg-configPackages: Copy meta attributes for licensing concerns
This commit is contained in:
parent
b576b17fb0
commit
2d4e78fb8b
@ -43,6 +43,24 @@ let
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ pkg ];
|
||||
inherit moduleName;
|
||||
meta = {
|
||||
description = "Test whether ${pkg.name} exposes pkg-config module ${moduleName}";
|
||||
}
|
||||
# Make sure licensing info etc is preserved, as this is a concern for e.g. cache.nixos.org,
|
||||
# as hydra can't check this meta info in dependencies.
|
||||
# The test itself is just Nixpkgs, with MIT license.
|
||||
// builtins.intersectAttrs
|
||||
{
|
||||
available = throw "unused";
|
||||
broken = throw "unused";
|
||||
insecure = throw "unused";
|
||||
license = throw "unused";
|
||||
maintainers = throw "unused";
|
||||
platforms = throw "unused";
|
||||
unfree = throw "unused";
|
||||
unsupported = throw "unused";
|
||||
}
|
||||
pkg.meta;
|
||||
} ''
|
||||
echo "checking pkg-config module $moduleName in $buildInputs"
|
||||
set +e
|
||||
|
Loading…
Reference in New Issue
Block a user