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