1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/coursier/default.nix

27 lines
776 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}";
2019-05-08 16:57:58 +01:00
version = "1.1.0-M14-4";
2017-03-20 03:58:24 +00:00
src = fetchurl {
2019-04-27 18:49:25 +01:00
url = "https://github.com/coursier/coursier/releases/download/v${version}/coursier";
2019-05-08 16:57:58 +01:00
sha256 = "1rlfqqlinbf472j7ifb8k4zkk2cx543cgnr0hi32qmqmzi0f89r2";
2017-03-20 03:58:24 +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
patchShebangs $out/bin/coursier
wrapProgram $out/bin/coursier --prefix PATH ":" ${jre}/bin
2017-03-20 03:58:24 +00:00
'';
meta = with stdenv.lib; {
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;
maintainers = with maintainers; [ adelbertc nequissimus ];
2017-03-20 03:58:24 +00:00
};
}