1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
8 owner = "silentbicycle";
11 sha256 = "1n2mkawfl2bpd4pwy3mdzxwlqjjvb5bdrr2x2gldlyqdwbk7qjhd";
14 preConfigure = "patchShebangs ./scripts/mk_bits_lut";
19 installFlags = [ "PREFIX=$(out)" ];
21 # fix the libtheft.pc file to use the right installation
22 # directory. should be fixed upstream, too
24 install -m644 vendor/greatest.h $out/include/
26 substituteInPlace $out/lib/pkgconfig/libtheft.pc \
27 --replace "/usr/local" "$out"
31 description = "A C library for property-based testing";
32 homepage = "https://github.com/silentbicycle/theft/";
33 platforms = platforms.unix;
34 license = licenses.isc;
35 maintainers = with maintainers; [ kquick thoughtpolice ];