python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / theft / default.nix
blob3d39075dd26ada89fa1eee5335d644544bf5d066
1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4   version = "0.4.5";
5   pname = "theft";
7   src = fetchFromGitHub {
8     owner  = "silentbicycle";
9     repo   = "theft";
10     rev    = "v${version}";
11     sha256 = "1n2mkawfl2bpd4pwy3mdzxwlqjjvb5bdrr2x2gldlyqdwbk7qjhd";
12   };
14   preConfigure = "patchShebangs ./scripts/mk_bits_lut";
16   doCheck = true;
17   checkTarget = "test";
19   installFlags = [ "PREFIX=$(out)" ];
21   # fix the libtheft.pc file to use the right installation
22   # directory. should be fixed upstream, too
23   postInstall = ''
24     install -m644 vendor/greatest.h $out/include/
26     substituteInPlace $out/lib/pkgconfig/libtheft.pc \
27       --replace "/usr/local" "$out"
28   '';
30   meta = with lib; {
31     description = "A C library for property-based testing";
32     homepage    = "https://github.com/silentbicycle/theft/";
33     platforms   = platforms.unix;
34     license     = licenses.isc;
35     maintainers = with maintainers; [ kquick thoughtpolice ];
36   };