From f9849698a8f65140ee0c31cf07eea70f5c6f74fb Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Thu, 14 Dec 2017 15:39:15 +0000 Subject: [PATCH] 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 --- pkgs/development/tools/coursier/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/coursier/default.nix b/pkgs/development/tools/coursier/default.nix index 874f8dcd96a3..2f2200010709 100644 --- a/pkgs/development/tools/coursier/default.nix +++ b/pkgs/development/tools/coursier/default.nix @@ -11,13 +11,13 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ makeWrapper ]; - phases = "installPhase"; + unpackPhase = ":"; installPhase = '' mkdir -p $out/bin cp ${src} $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; {