fetchcargo: Fix cargo-vendor-normalise for darwin
This commit is contained in:
parent
a3e1da17cb
commit
50578abfc5
@ -2,8 +2,11 @@
|
|||||||
let cargo-vendor-normalise = stdenv.mkDerivation {
|
let cargo-vendor-normalise = stdenv.mkDerivation {
|
||||||
name = "cargo-vendor-normalise";
|
name = "cargo-vendor-normalise";
|
||||||
src = ./cargo-vendor-normalise.py;
|
src = ./cargo-vendor-normalise.py;
|
||||||
|
nativeBuildInputs = [ python3.pkgs.wrapPython ];
|
||||||
unpackPhase = ":";
|
unpackPhase = ":";
|
||||||
installPhase = "install -D $src $out/bin/cargo-vendor-normalise";
|
installPhase = "install -D $src $out/bin/cargo-vendor-normalise";
|
||||||
|
pythonPath = [ python3.pkgs.toml ];
|
||||||
|
postFixup = "wrapPythonPrograms";
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
installCheckPhase = ''
|
installCheckPhase = ''
|
||||||
# check that ./fetchcargo-default-config.toml is a fix point
|
# check that ./fetchcargo-default-config.toml is a fix point
|
||||||
@ -11,7 +14,6 @@ let cargo-vendor-normalise = stdenv.mkDerivation {
|
|||||||
< $reference $out/bin/cargo-vendor-normalise > test;
|
< $reference $out/bin/cargo-vendor-normalise > test;
|
||||||
cmp test $reference
|
cmp test $reference
|
||||||
'';
|
'';
|
||||||
buildInputs = [ (python3.withPackages(ps: [ ps.toml ])) ];
|
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user