buildRustPackage: fix erroneous /bin/sh reference
The fetch-cargo-deps script is written in bash syntax, but it erroneously ran under the /bin/sh interpreter. This wasn't noticed because /bin/sh is actually bash in NixOS, but on some other systems this is not true.
This commit is contained in:
parent
2cba327feb
commit
777c9c3768
@ -1,5 +1,3 @@
|
|||||||
#! /bin/sh
|
|
||||||
|
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
@ -9,7 +9,7 @@ stdenv.mkDerivation {
|
|||||||
phases = "unpackPhase installPhase";
|
phases = "unpackPhase installPhase";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
${./fetch-cargo-deps} . "$out"
|
bash ${./fetch-cargo-deps} . "$out"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
outputHashAlgo = "sha256";
|
outputHashAlgo = "sha256";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user