nixpkgs/pkgs/development/tools/drip/default.nix

40 lines
917 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, jdk8, which, makeWrapper }:
2017-11-27 10:47:52 -08:00
stdenv.mkDerivation rec {
pname = "drip";
version = "0.2.4";
src = fetchFromGitHub {
repo = pname;
2017-11-27 13:38:43 -08:00
owner = "ninjudd";
2017-11-27 10:47:52 -08:00
rev = version;
sha256 = "1zl62wdwfak6z725asq5lcqb506la1aavj7ag78lvp155wyh8aq1";
};
2017-11-28 05:36:38 -08:00
nativeBuildInputs = [ makeWrapper ];
2020-09-19 08:38:15 -07:00
buildInputs = [ jdk8 ];
2017-11-28 05:36:38 -08:00
postPatch = ''
patchShebangs .
2017-11-27 10:47:52 -08:00
'';
2017-11-28 05:36:38 -08:00
installPhase = ''
runHook preInstall
mkdir $out
cp ./* $out -r
wrapProgram $out/bin/drip \
--prefix PATH : "${which}/bin"
2017-11-27 10:47:52 -08:00
$out/bin/drip version
2017-11-28 05:36:38 -08:00
runHook postInstall
2017-11-27 10:47:52 -08:00
'';
meta = with lib; {
2017-11-28 05:36:38 -08: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 13:38:43 -08:00
license = licenses.epl10;
homepage = "https://github.com/ninjudd/drip";
2017-11-27 10:47:52 -08:00
platforms = platforms.linux;
maintainers = [ maintainers.rybern ];
};
}