@@ -0,0 +1,29 @@
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+
16+ doCheck = true;
17+ checkTarget = "test";
18+
19+ installFlags = [ "PREFIX=$(out)" ];
20+ postInstall = "install -m644 vendor/greatest.h $out/include/";
21+
22+ meta = {
23+ description = "A C library for property-based testing";
24+ platforms = stdenv.lib.platforms.linux;
25+ homepage = "http://github.com/silentbicycle/theft/";
26+ license = stdenv.lib.licenses.isc;
27+ maintainers = [ stdenv.lib.maintainers.kquick ];
28+ };
29+}