set PKG_CONFIG_PATH for semver-checks and miri
All checks were successful
CI / checks (push) Successful in 14s

This commit is contained in:
Robin Appelman 2025-06-04 19:27:50 +02:00
commit a50219c7ee

View file

@ -10,9 +10,10 @@
...
}: let
inherit (builtins) elem readFile pathExists match any concatLists;
inherit (lib) getExe map mkDefault mkIf mkMerge mkOption warnIf optionalAttrs types optionalString genAttrs hasInfix makeBinPath;
inherit (lib) getExe map mkDefault mkIf mkMerge mkOption warnIf optionalAttrs types optionalString genAttrs hasInfix makeBinPath makeSearchPathOutput;
inherit (lib.fileset) fileFilter toSource unions;
inherit (flakelight.types) fileset function optFunctionTo;
makePkgConfigPath = makeSearchPathOutput "dev" "lib/pkgconfig";
filteredSrc = toSource {
root = src;
@ -381,14 +382,14 @@ in
name = "cargo-miri";
runtimeInputs = [miriRustToolchain] ++ deps;
text = ''
cargo miri "$@"
PKG_CONFIG_PATH=${makePkgConfigPath deps} cargo miri "$@"
'';
};
semver-checks-wrapped = writeShellApplication {
name = "cargo-semver-checks";
runtimeInputs = [cargo-semver-checks rustToolchain] ++ deps;
text = ''
cargo-semver-checks "$@"
PKG_CONFIG_PATH=${makePkgConfigPath deps} cargo-semver-checks "$@"
'';
};
in {