3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/coursier/default.nix

30 lines
797 B
Nix
Raw Normal View History

2017-03-20 03:58:24 +00:00
{ stdenv, fetchurl, makeWrapper, jre }:
stdenv.mkDerivation rec {
2017-04-08 20:03:33 +01:00
name = "coursier-${version}";
version = "1.0.0-RC13";
2017-03-20 03:58:24 +00:00
src = fetchurl {
2017-04-08 20:03:33 +01:00
url = "https://github.com/coursier/coursier/raw/v${version}/coursier";
sha256 = "18i7imd6lqkvpzhx1m72g6jwsqq7h6aisfny5aiccgnyg6jpag6i";
2017-03-20 03:58:24 +00:00
};
nativeBuildInputs = [ makeWrapper ];
2017-03-20 03:58:24 +00:00
phases = "installPhase";
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; {
2017-04-08 20:03:33 +01:00
homepage = http://get-coursier.io/;
2017-03-20 03:58:24 +00:00
description = "A Scala library to fetch dependencies from Maven / Ivy repositories";
2017-04-08 20:03:33 +01:00
license = licenses.asl20;
maintainers = with maintainers; [ adelbertc nequissimus ];
2017-03-20 03:58:24 +00:00
};
}