mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
27 lines
776 B
Nix
27 lines
776 B
Nix
{ stdenv, fetchurl, makeWrapper, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "coursier-${version}";
|
|
version = "1.1.0-M14-4";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/coursier/coursier/releases/download/v${version}/coursier";
|
|
sha256 = "1rlfqqlinbf472j7ifb8k4zkk2cx543cgnr0hi32qmqmzi0f89r2";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildCommand = ''
|
|
install -Dm555 $src $out/bin/coursier
|
|
patchShebangs $out/bin/coursier
|
|
wrapProgram $out/bin/coursier --prefix PATH ":" ${jre}/bin
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://get-coursier.io/;
|
|
description = "A Scala library to fetch dependencies from Maven / Ivy repositories";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ adelbertc nequissimus ];
|
|
};
|
|
}
|