@@ -0,0 +1,33 @@
1+{ stdenv, fetchFromGitHub }:
2+
3+stdenv.mkDerivation rec {
4+ version = "0.4.3";
5+ name = "theft-${version}";
6+
7+ src = fetchFromGitHub {
8+ owner = "silentbicycle";
9+ repo = "theft";
10+ rev = "v${version}";
11+ sha256 = "1ibh8np12lafnrsrvjbbzlyq45zq654939x0y22vdnc6s8dpbhw4";
12+ };
13+
14+ preConfigure = "patchShebangs ./scripts/mk_bits_lut";
15+ # doCheck = true;
16+
17+ propagatedBuildInputs = [ ];
18+
19+ buildInputs = [ ];
20+
21+ installFlags = [ "PREFIX=$(out)" ];
22+ postInstall = ''
23+ install -m644 vendor/greatest.h $out/include/
24+ '';
25+
26+ meta = {
27+ description = "A C library for property-based testing.";
28+ platforms = stdenv.lib.platforms.linux;
29+ homepage = "http://github.com/silentbicycle/theft/";
30+ license = stdenv.lib.licenses.isc;
31+ maintainers = [ stdenv.lib.maintainers.kquick ];
32+ };
33+}