From 9634d9e4fc30b456bf0be117c49524d6a81bf63c Mon Sep 17 00:00:00 2001 From: Adelbert Chang Date: Sun, 19 Mar 2017 20:58:24 -0700 Subject: [PATCH 1/2] coursier: init at 1.0.0-M15 --- pkgs/development/tools/coursier/default.nix | 28 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/tools/coursier/default.nix diff --git a/pkgs/development/tools/coursier/default.nix b/pkgs/development/tools/coursier/default.nix new file mode 100644 index 000000000000..70003bc8802e --- /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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 63821dedc2b1..2577697f69ee 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -804,6 +804,8 @@ with pkgs; coturn = callPackage ../servers/coturn { }; + coursier = callPackage ../development/tools/coursier {}; + crunch = callPackage ../tools/security/crunch { }; crudini = callPackage ../tools/misc/crudini { }; From 8d182a7e6b61c9487e0a7012a4511a3863f214e3 Mon Sep 17 00:00:00 2001 From: Adelbert Chang Date: Mon, 20 Mar 2017 09:04:40 -0700 Subject: [PATCH 2/2] coursier: makeWrapper as nativeBuildInputs, add adelbertc and nequissimus as maintainers --- lib/maintainers.nix | 1 + pkgs/development/tools/coursier/default.nix | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/maintainers.nix b/lib/maintainers.nix index d6cb2722b33c..7efb328c0833 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -14,6 +14,7 @@ aboseley = "Adam Boseley "; abuibrahim = "Ruslan Babayev "; acowley = "Anthony Cowley "; + adelbertc = "Adelbert Chang "; adev = "Adrien Devresse "; Adjective-Object = "Maxwell Huang-Hobbs "; adnelson = "Allen Nelson "; diff --git a/pkgs/development/tools/coursier/default.nix b/pkgs/development/tools/coursier/default.nix index 70003bc8802e..7a2b3e8e1d97 100644 --- a/pkgs/development/tools/coursier/default.nix +++ b/pkgs/development/tools/coursier/default.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { sha256 = "610c5fc08d0137c5270cefd14623120ab10cd81b9f48e43093893ac8d00484c9"; }; - buildInputs = [ makeWrapper ]; + nativeBuildInputs = [ makeWrapper ]; phases = "installPhase"; @@ -24,5 +24,6 @@ stdenv.mkDerivation rec { homepage = http://get-coursier.io/; description = "A Scala library to fetch dependencies from Maven / Ivy repositories"; license = licenses.asl20; + maintainers = with maintainers; [ adelbertc nequissimus ]; }; }