3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/halfempty/default.nix

38 lines
911 B
Nix
Raw Normal View History

2020-11-24 15:29:28 +00:00
{ lib, stdenv, fetchFromGitHub, pkgconfig, glib, util-linux, scowl }:
2020-02-01 12:54:05 +00:00
stdenv.mkDerivation rec {
pname = "halfempty";
version = "0.30";
src = fetchFromGitHub {
owner = "googleprojectzero";
repo = pname;
rev = "v${version}";
sha256 = "0838pw0ccjvlxmjygzrnppz1fx1a10vjzdgjbxgb4wgpqjr8v6vc";
};
2020-11-24 15:29:28 +00:00
nativeBuildInputs = [ pkgconfig util-linux ];
2020-02-01 12:54:05 +00:00
buildInputs = [ glib ];
enableParallelBuilding = true;
postPatch = ''
substituteInPlace test/Makefile \
--replace '/usr/share/dict/words' '${scowl}/share/dict/words.txt'
'';
installPhase = ''
install -vDt $out/bin halfempty
'';
doCheck = true;
checkTarget = "test";
meta = {
description = "Fast, parallel test case minimization tool";
homepage = "https://github.com/googleprojectzero/halfempty/";
maintainers = with lib.maintainers; [ fpletz ];
license = with lib.licenses; [ asl20 ];
};
}