nixpkgs/pkgs/development/tools/coursier/default.nix

30 lines
784 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}";
2018-01-04 02:07:49 +00:00
version = "1.0.0";
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";
2018-01-04 02:07:49 +00:00
sha256 = "0167cgp3kqx336p8dmlxx57bi3lhzyp6ncly28v1s7r2sjxj9krj";
2017-03-20 03:58:24 +00:00
};
nativeBuildInputs = [ makeWrapper ];
2017-03-20 03:58:24 +00:00
unpackPhase = ":";
2017-03-20 03:58:24 +00:00
installPhase = ''
mkdir -p $out/bin
cp ${src} $out/bin/coursier
chmod +x $out/bin/coursier
wrapProgram $out/bin/coursier --prefix PATH ":" ${jre}/bin
2017-03-20 03:58:24 +00:00
'';
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
};
}