mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
cargo-vendor-normalise: add a small install check
This commit is contained in:
parent
33dab23255
commit
a3e1da17cb
@ -4,6 +4,13 @@ let cargo-vendor-normalise = stdenv.mkDerivation {
|
||||
src = ./cargo-vendor-normalise.py;
|
||||
unpackPhase = ":";
|
||||
installPhase = "install -D $src $out/bin/cargo-vendor-normalise";
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
# check that ./fetchcargo-default-config.toml is a fix point
|
||||
reference=${./fetchcargo-default-config.toml}
|
||||
< $reference $out/bin/cargo-vendor-normalise > test;
|
||||
cmp test $reference
|
||||
'';
|
||||
buildInputs = [ (python3.withPackages(ps: [ ps.toml ])) ];
|
||||
preferLocalBuild = true;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user