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

26 lines
719 B
Nix
Raw Normal View History

2017-03-19 20:58:24 -07:00
{ stdenv, fetchurl, makeWrapper, jre }:
stdenv.mkDerivation rec {
2017-04-08 12:03:33 -07:00
name = "coursier-${version}";
2018-02-21 18:50:17 -08:00
version = "1.0.1";
2017-03-19 20:58:24 -07:00
src = fetchurl {
2017-04-08 12:03:33 -07:00
url = "https://github.com/coursier/coursier/raw/v${version}/coursier";
2018-02-21 18:50:17 -08:00
sha256 = "1rn1vb33zfl9iy80fhqvi9ykdjxz029nah5yfr5xixcx9al0bai3";
2017-03-19 20:58:24 -07:00
};
nativeBuildInputs = [ makeWrapper ];
2017-03-19 20:58:24 -07:00
2018-02-21 18:50:17 -08:00
buildCommand = ''
install -Dm555 $src $out/bin/coursier
wrapProgram $out/bin/coursier --prefix PATH ":" ${jre}/bin
2017-03-19 20:58:24 -07:00
'';
meta = with stdenv.lib; {
2017-04-08 12:03:33 -07:00
homepage = http://get-coursier.io/;
2017-03-19 20:58:24 -07:00
description = "A Scala library to fetch dependencies from Maven / Ivy repositories";
2017-04-08 12:03:33 -07:00
license = licenses.asl20;
maintainers = with maintainers; [ adelbertc nequissimus ];
2017-03-19 20:58:24 -07:00
};
}