about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/rapidcheck/default.nix
blob: 492e1228978100b809ad07ce3167c09ec8e4cdf1 (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
30
31
{ stdenv, cmake, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "rapidcheck";
  version = "unstable-2018-09-27";

  src = fetchFromGitHub {
    owner = "emil-e";
    repo  = "rapidcheck";
    rev   = "de54478fa35c0d9cea14ec0c5c9dfae906da524c";
    sha256 = "0n8l0mlq9xqmpkgcj5xicicd1my2cfwxg25zdy8347dqkl1ppgbs";
  };

  nativeBuildInputs = [ cmake ];

  # Install the extras headers
  postInstall = ''
    cp -r $src/extras $out
    chmod -R +w $out/extras
    rm $out/extras/CMakeLists.txt
    rm $out/extras/**/CMakeLists.txt
  '';

  meta = with stdenv.lib; {
    description = "A C++ framework for property based testing inspired by QuickCheck";
    inherit (src.meta) homepage;
    maintainers = with maintainers; [ jb55 ];
    license = licenses.bsd2;
    platforms = platforms.all;
  };
}