nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchFromGitHub, jdk, which, makeWrapper }:
2
3stdenv.mkDerivation rec {
4 name = "${pname}-${version}";
5 pname = "drip";
6 version = "0.2.4";
7
8 src = fetchFromGitHub {
9 repo = pname;
10 owner = "ninjudd";
11 rev = version;
12 sha256 = "1zl62wdwfak6z725asq5lcqb506la1aavj7ag78lvp155wyh8aq1";
13 };
14
15 nativeBuildInputs = [ makeWrapper ];
16
17 buildInputs = [ jdk ];
18
19 postPatch = ''
20 patchShebangs .
21 '';
22
23 installPhase = ''
24 runHook preInstall
25 mkdir $out
26 cp ./* $out -r
27 wrapProgram $out/bin/drip \
28 --prefix PATH : "${which}/bin"
29 $out/bin/drip version
30 runHook postInstall
31 '';
32
33 meta = with stdenv.lib; {
34 description = "A launcher for the Java Virtual Machine intended to be a drop-in replacement for the java command, only faster";
35 license = licenses.epl10;
36 homepage = https://github.com/ninjudd/drip;
37 platforms = platforms.linux;
38 maintainers = [ maintainers.rybern ];
39 };
40}