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 }: let
inherit (builtins) elem readFile pathExists match any concatLists; 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 (lib.fileset) fileFilter toSource unions;
inherit (flakelight.types) fileset function optFunctionTo; inherit (flakelight.types) fileset function optFunctionTo;
makePkgConfigPath = makeSearchPathOutput "dev" "lib/pkgconfig";
filteredSrc = toSource { filteredSrc = toSource {
root = src; root = src;
@ -381,14 +382,14 @@ in
name = "cargo-miri"; name = "cargo-miri";
runtimeInputs = [miriRustToolchain] ++ deps; runtimeInputs = [miriRustToolchain] ++ deps;
text = '' text = ''
cargo miri "$@" PKG_CONFIG_PATH=${makePkgConfigPath deps} cargo miri "$@"
''; '';
}; };
semver-checks-wrapped = writeShellApplication { semver-checks-wrapped = writeShellApplication {
name = "cargo-semver-checks"; name = "cargo-semver-checks";
runtimeInputs = [cargo-semver-checks rustToolchain] ++ deps; runtimeInputs = [cargo-semver-checks rustToolchain] ++ deps;
text = '' text = ''
cargo-semver-checks "$@" PKG_CONFIG_PATH=${makePkgConfigPath deps} cargo-semver-checks "$@"
''; '';
}; };
in { in {