3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/theft/default.nix

30 lines
762 B
Nix
Raw Normal View History

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