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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
917 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, jdk8, which, makeWrapper }:
2017-11-27 18:47:52 +00:00
stdenv.mkDerivation rec {
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 ];
2020-09-19 15:38:15 +00:00
buildInputs = [ jdk8 ];
2017-11-28 13:36:38 +00:00
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 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 ];
};
}