summary refs log tree commit diff
path: root/pkgs/development/tools/coursier/default.nix
blob: 7a2b3e8e1d971447b5eed7dcf97727c82277e0dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchurl, makeWrapper, jre }:

stdenv.mkDerivation rec {
  name    = "coursier-${version}";
  version = "1.0.0-M15-5";

  src = fetchurl {
    url    = "https://github.com/coursier/coursier/raw/v${version}/coursier";
    sha256 = "610c5fc08d0137c5270cefd14623120ab10cd81b9f48e43093893ac8d00484c9";
  };

  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 ];
  };
}