about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/theft/default.nix
blob: 881f9c033a386059a4efc8d330b2b4e523b60289 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ 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)" ];
  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 ];
  };
}