summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2017-12-01 21:44:23 +0000
committerGitHub <noreply@github.com>2017-12-01 21:44:23 +0000
commit302552b722fbfa1d45d63ab872a37adf40460a84 (patch)
treed35c7653278b5be3c3161cae9e6262f05e7ebfcf /pkgs/development
parent04221193f90a2808a82ea73096dad98501c060a4 (diff)
parent6f52bf806328b140ad7898d63d53ec59f95179e1 (diff)
downloadnixpkgs-302552b722fbfa1d45d63ab872a37adf40460a84.tar
nixpkgs-302552b722fbfa1d45d63ab872a37adf40460a84.tar.gz
nixpkgs-302552b722fbfa1d45d63ab872a37adf40460a84.tar.bz2
nixpkgs-302552b722fbfa1d45d63ab872a37adf40460a84.tar.lz
nixpkgs-302552b722fbfa1d45d63ab872a37adf40460a84.tar.xz
nixpkgs-302552b722fbfa1d45d63ab872a37adf40460a84.tar.zst
nixpkgs-302552b722fbfa1d45d63ab872a37adf40460a84.zip
Merge pull request #32120 from rybern/add-drip
drip: init at 0.2.4
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/tools/drip/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/tools/drip/default.nix b/pkgs/development/tools/drip/default.nix
new file mode 100644
index 00000000000..17aa94ebf36
--- /dev/null
+++ b/pkgs/development/tools/drip/default.nix
@@ -0,0 +1,40 @@
+{ stdenv, fetchFromGitHub, jdk, which, makeWrapper }:
+
+stdenv.mkDerivation rec {
+  name = "${pname}-${version}";
+  pname = "drip";
+  version = "0.2.4";
+
+  src = fetchFromGitHub {
+    repo = pname;
+    owner = "ninjudd";
+    rev = version;
+    sha256 = "1zl62wdwfak6z725asq5lcqb506la1aavj7ag78lvp155wyh8aq1";
+  };
+
+  nativeBuildInputs = [ makeWrapper ];
+
+  buildInputs = [ jdk ];
+
+  postPatch = ''
+    patchShebangs .
+  '';
+
+  installPhase = ''
+    runHook preInstall
+    mkdir $out
+    cp ./* $out -r
+    wrapProgram $out/bin/drip \
+      --prefix PATH : "${which}/bin"
+    $out/bin/drip version
+    runHook postInstall
+  '';
+
+  meta = with stdenv.lib; {
+    description = "A launcher for the Java Virtual Machine intended to be a drop-in replacement for the java command, only faster";
+    license = licenses.epl10;
+    homepage = https://github.com/ninjudd/drip;
+    platforms = platforms.linux;
+    maintainers = [ maintainers.rybern ];
+  };
+}