2017-10-19 07:23:09 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.4.3";
|
|
|
|
name = "theft-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "silentbicycle";
|
|
|
|
repo = "theft";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1ibh8np12lafnrsrvjbbzlyq45zq654939x0y22vdnc6s8dpbhw4";
|
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = "patchShebangs ./scripts/mk_bits_lut";
|
|
|
|
|
2017-10-19 17:37:10 +01:00
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
|
2017-10-19 07:23:09 +01:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2017-10-26 00:15:44 +01:00
|
|
|
postInstall = "install -m644 vendor/greatest.h $out/include/";
|
2017-10-19 07:23:09 +01:00
|
|
|
|
|
|
|
meta = {
|
2017-10-19 18:01:48 +01:00
|
|
|
description = "A C library for property-based testing";
|
2017-10-19 07:23:09 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
homepage = "http://github.com/silentbicycle/theft/";
|
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.kquick ];
|
|
|
|
};
|
|
|
|
}
|