nixpkgs/pkgs/development/tools/halfempty/default.nix

38 lines
912 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, pkg-config, glib, util-linux, scowl }:
2020-02-01 12:54:05 +00:00
stdenv.mkDerivation rec {
pname = "halfempty";
2021-01-18 23:52:17 +00:00
version = "0.40";
2020-02-01 12:54:05 +00:00
src = fetchFromGitHub {
owner = "googleprojectzero";
repo = pname;
rev = "v${version}";
2021-01-18 23:52:17 +00:00
sha256 = "sha256-YGq6fneAMo2jCpLPrjzRJ0eeOsStKaK5L+lwQfqcfpY=";
2020-02-01 12:54:05 +00:00
};
nativeBuildInputs = [ pkg-config 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 ];
};
}