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