f9849698a8
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
30 lines
789 B
Nix
30 lines
789 B
Nix
{ stdenv, fetchurl, makeWrapper, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "coursier-${version}";
|
|
version = "1.0.0-RC13";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/coursier/coursier/raw/v${version}/coursier";
|
|
sha256 = "18i7imd6lqkvpzhx1m72g6jwsqq7h6aisfny5aiccgnyg6jpag6i";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
unpackPhase = ":";
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp ${src} $out/bin/coursier
|
|
chmod +x $out/bin/coursier
|
|
wrapProgram $out/bin/coursier --prefix PATH ":" ${jre}/bin
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://get-coursier.io/;
|
|
description = "A Scala library to fetch dependencies from Maven / Ivy repositories";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ adelbertc nequissimus ];
|
|
};
|
|
}
|