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}";
|
2019-02-01 16:44:12 +00:00
|
|
|
version = "1.1.0-M10";
|
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";
|
2019-02-01 16:44:12 +00:00
|
|
|
sha256 = "14iq0717vdm0mj0196idc724vmxp1y0f3gfn41sbqahfhvcx05y8";
|
2017-03-20 03:58:24 +00:00
|
|
|
};
|
|
|
|
|
2017-03-20 16:04:40 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2017-03-20 03:58:24 +00:00
|
|
|
|
2018-02-22 02:50:17 +00:00
|
|
|
buildCommand = ''
|
|
|
|
install -Dm555 $src $out/bin/coursier
|
2018-07-21 15:27:53 +01:00
|
|
|
patchShebangs $out/bin/coursier
|
2017-12-14 15:39:15 +00:00
|
|
|
wrapProgram $out/bin/coursier --prefix PATH ":" ${jre}/bin
|
2017-03-20 03:58:24 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-04-22 09:14:28 +01:00
|
|
|
homepage = https://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;
|
2017-03-20 16:04:40 +00:00
|
|
|
maintainers = with maintainers; [ adelbertc nequissimus ];
|
2017-03-20 03:58:24 +00:00
|
|
|
};
|
|
|
|
}
|