diff options
author | Adelbert Chang <adelbertc@gmail.com> | 2017-03-19 20:58:24 -0700 |
---|---|---|
committer | Adelbert Chang <adelbertc@gmail.com> | 2017-03-19 21:32:09 -0700 |
commit | 9634d9e4fc30b456bf0be117c49524d6a81bf63c (patch) | |
tree | a18c1e9a77501414d5096934517a8bebb0819f4e /pkgs/development/tools/coursier | |
parent | 8cbbba6b3327fd613a8072cf06f8caa35be28038 (diff) |
coursier: init at 1.0.0-M15
Diffstat (limited to 'pkgs/development/tools/coursier')
-rw-r--r-- | pkgs/development/tools/coursier/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/tools/coursier/default.nix b/pkgs/development/tools/coursier/default.nix new file mode 100644 index 0000000000000..70003bc8802e7 --- /dev/null +++ b/pkgs/development/tools/coursier/default.nix @@ -0,0 +1,28 @@ +{ 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"; + }; + + buildInputs = [ 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; + }; +} |