nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 64 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 makeWrapper, 6 jdk8, 7 coreutils, 8 which, 9 gnumake, 10 versionCheckHook, 11}: 12 13stdenv.mkDerivation (finalAttrs: { 14 pname = "drip"; 15 version = "0.2.4"; 16 17 src = fetchFromGitHub { 18 repo = "drip"; 19 owner = "ninjudd"; 20 tag = finalAttrs.version; 21 hash = "sha256-ASsEPS8l3E3ReerIrVRQ1ICyMKMFa1XE+WYqxxsXhv4="; 22 }; 23 24 nativeBuildInputs = [ makeWrapper ]; 25 26 buildInputs = [ jdk8 ]; 27 28 patches = [ ./wait.patch ]; 29 30 postPatch = '' 31 patchShebangs . 32 ''; 33 34 installPhase = '' 35 runHook preInstall 36 mkdir $out 37 cp ./* $out -r 38 wrapProgram $out/bin/drip \ 39 --prefix PATH : ${ 40 lib.makeBinPath [ 41 coreutils 42 which 43 gnumake 44 jdk8 45 ] 46 } 47 runHook postInstall 48 ''; 49 50 doInstallCheck = true; 51 nativeInstallCheckInputs = [ versionCheckHook ]; 52 versionCheckProgramArg = "version"; 53 54 meta = { 55 description = "Launcher for the Java Virtual Machine intended to be a drop-in replacement for the java command, only faster"; 56 license = lib.licenses.epl10; 57 homepage = "https://github.com/ninjudd/drip"; 58 platforms = lib.platforms.linux; 59 maintainers = with lib.maintainers; [ 60 rybern 61 da157 62 ]; 63 }; 64})