nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 37 lines 909 B view raw
1{ lib, stdenv, fetchFromGitHub, pkgconfig, glib, utillinux, scowl }: 2 3stdenv.mkDerivation rec { 4 pname = "halfempty"; 5 version = "0.30"; 6 7 src = fetchFromGitHub { 8 owner = "googleprojectzero"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "0838pw0ccjvlxmjygzrnppz1fx1a10vjzdgjbxgb4wgpqjr8v6vc"; 12 }; 13 14 nativeBuildInputs = [ pkgconfig utillinux ]; 15 buildInputs = [ glib ]; 16 17 enableParallelBuilding = true; 18 19 postPatch = '' 20 substituteInPlace test/Makefile \ 21 --replace '/usr/share/dict/words' '${scowl}/share/dict/words.txt' 22 ''; 23 24 installPhase = '' 25 install -vDt $out/bin halfempty 26 ''; 27 28 doCheck = true; 29 checkTarget = "test"; 30 31 meta = { 32 description = "Fast, parallel test case minimization tool"; 33 homepage = "https://github.com/googleprojectzero/halfempty/"; 34 maintainers = with lib.maintainers; [ fpletz ]; 35 license = with lib.licenses; [ asl20 ]; 36 }; 37}