1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/drip/default.nix

41 lines
947 B
Nix
Raw Normal View History

2017-11-28 13:36:38 +00:00
{ stdenv, fetchFromGitHub, jdk, which, makeWrapper }:
2017-11-27 18:47:52 +00:00
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "drip";
version = "0.2.4";
src = fetchFromGitHub {
repo = pname;
2017-11-27 21:38:43 +00:00
owner = "ninjudd";
2017-11-27 18:47:52 +00:00
rev = version;
sha256 = "1zl62wdwfak6z725asq5lcqb506la1aavj7ag78lvp155wyh8aq1";
};
2017-11-28 13:36:38 +00:00
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ jdk ];
postPatch = ''
patchShebangs .
2017-11-27 18:47:52 +00:00
'';
2017-11-28 13:36:38 +00:00
installPhase = ''
runHook preInstall
mkdir $out
cp ./* $out -r
wrapProgram $out/bin/drip \
--prefix PATH : "${which}/bin"
2017-11-27 18:47:52 +00:00
$out/bin/drip version
2017-11-28 13:36:38 +00:00
runHook postInstall
2017-11-27 18:47:52 +00:00
'';
meta = with stdenv.lib; {
2017-11-28 13:36:38 +00:00
description = "A launcher for the Java Virtual Machine intended to be a drop-in replacement for the java command, only faster";
2017-11-27 21:38:43 +00:00
license = licenses.epl10;
homepage = https://github.com/ninjudd/drip;
2017-11-27 18:47:52 +00:00
platforms = platforms.linux;
maintainers = [ maintainers.rybern ];
};
}