mirror of
https://codeberg.org/icewind/mill-scale.git
synced 2026-06-03 18:04:09 +02:00
improve miri wrapper
This commit is contained in:
parent
742b859635
commit
8f72fa46be
1 changed files with 17 additions and 3 deletions
|
|
@ -10,7 +10,7 @@
|
||||||
...
|
...
|
||||||
}: 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 optionals;
|
inherit (lib) getExe map mkDefault mkIf mkMerge mkOption warnIf optionalAttrs types optionalString genAttrs hasInfix makeBinPath;
|
||||||
inherit (lib.fileset) fileFilter toSource unions;
|
inherit (lib.fileset) fileFilter toSource unions;
|
||||||
inherit (flakelight.types) fileset function optFunctionTo;
|
inherit (flakelight.types) fileset function optFunctionTo;
|
||||||
|
|
||||||
|
|
@ -368,9 +368,23 @@ in
|
||||||
apps = {
|
apps = {
|
||||||
cargo-miri,
|
cargo-miri,
|
||||||
cargo-semver-checks,
|
cargo-semver-checks,
|
||||||
|
miriRustToolchain,
|
||||||
|
writeShellApplication,
|
||||||
...
|
...
|
||||||
}: {
|
} @ pkgs: let
|
||||||
miri = "${cargo-miri}/bin/cargo-miri";
|
deps =
|
||||||
|
(buildDeps pkgs).buildInputs
|
||||||
|
++ (buildDeps pkgs).nativeBuildInputs
|
||||||
|
++ [pkgs.stdenv.cc];
|
||||||
|
miriWrapped = writeShellApplication {
|
||||||
|
name = "cargo-miri";
|
||||||
|
runtimeInputs = [miriRustToolchain];
|
||||||
|
text = ''
|
||||||
|
PATH="$PATH:${makeBinPath deps}" cargo miri "$@"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
miri = "${miriWrapped}/bin/cargo-miri";
|
||||||
semver-checks = "${cargo-semver-checks}/bin/cargo-semver-checks semver-checks";
|
semver-checks = "${cargo-semver-checks}/bin/cargo-semver-checks semver-checks";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue