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:
Ricardo M. Correia 2015-10-29 15:07:18 +01:00
parent 2cba327feb
commit 777c9c3768
2 changed files with 1 additions and 3 deletions

View file

@ -1,5 +1,3 @@
#! /bin/sh
source $stdenv/setup
set -euo pipefail

View file

@ -9,7 +9,7 @@ stdenv.mkDerivation {
phases = "unpackPhase installPhase";
installPhase = ''
${./fetch-cargo-deps} . "$out"
bash ${./fetch-cargo-deps} . "$out"
'';
outputHashAlgo = "sha256";