rust-bindgen: use a better drv name for fakeRustup
I saw a derivation called "rustup" building and was concerned why rust-bindgen would depend on rustup. If it had been called "fake-rustup", I wouldn't have had to check the package source to see what was going on. :)
This commit is contained in:
parent
8a1a420afb
commit
5fc7992364
1 changed files with 12 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, fetchFromGitHub, rustPlatform, clang, llvmPackages_latest, rustfmt, writeScriptBin
|
{ lib, fetchFromGitHub, rustPlatform, clang, llvmPackages_latest, rustfmt, writeTextFile
|
||||||
, runtimeShell
|
, runtimeShell
|
||||||
, bash
|
, bash
|
||||||
}:
|
}:
|
||||||
|
@ -38,12 +38,17 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
checkInputs =
|
checkInputs =
|
||||||
let fakeRustup = writeScriptBin "rustup" ''
|
let fakeRustup = writeTextFile {
|
||||||
#!${runtimeShell}
|
name = "fake-rustup";
|
||||||
shift
|
executable = true;
|
||||||
shift
|
destination = "/bin/rustup";
|
||||||
exec "$@"
|
text = ''
|
||||||
'';
|
#!${runtimeShell}
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
exec "$@"
|
||||||
|
'';
|
||||||
|
};
|
||||||
in [
|
in [
|
||||||
rustfmt
|
rustfmt
|
||||||
fakeRustup # the test suite insists in calling `rustup run nightly rustfmt`
|
fakeRustup # the test suite insists in calling `rustup run nightly rustfmt`
|
||||||
|
|
Loading…
Reference in a new issue