nixpkgs/pkgs/development/tools/coursier/default.nix
2017-05-06 12:25:44 -04:00

30 lines
796 B
Nix

{ stdenv, fetchurl, makeWrapper, jre }:
stdenv.mkDerivation rec {
name = "coursier-${version}";
version = "1.0.0-RC2";
src = fetchurl {
url = "https://github.com/coursier/coursier/raw/v${version}/coursier";
sha256 = "0w97s1dzfl3gyqa293k8n4hpsrqc10va1lc7jhb05208rsz1hf2m";
};
nativeBuildInputs = [ makeWrapper ];
phases = "installPhase";
installPhase = ''
mkdir -p $out/bin
cp ${src} $out/bin/coursier
chmod +x $out/bin/coursier
wrapProgram $out/bin/coursier --prefix PATH ":" ${jre}/bin ;
'';
meta = with stdenv.lib; {
homepage = http://get-coursier.io/;
description = "A Scala library to fetch dependencies from Maven / Ivy repositories";
license = licenses.asl20;
maintainers = with maintainers; [ adelbertc nequissimus ];
};
}