coursier: fix shebang

Do not override phases for the fixupPhase to patching the script interpreter of .coursier-wrapped.

Fixes the sandboxed build of scalafmt: https://github.com/NixOS/nixpkgs/pull/32442#issuecomment-351742204
This commit is contained in:
Orivej Desh 2017-12-14 15:39:15 +00:00
parent 9759b65846
commit f9849698a8

View File

@ -11,13 +11,13 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
phases = "installPhase"; unpackPhase = ":";
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
cp ${src} $out/bin/coursier cp ${src} $out/bin/coursier
chmod +x $out/bin/coursier chmod +x $out/bin/coursier
wrapProgram $out/bin/coursier --prefix PATH ":" ${jre}/bin ; wrapProgram $out/bin/coursier --prefix PATH ":" ${jre}/bin
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {