mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-04 03:53:56 +00:00
74aed074ec
Fixed gcc build failure among other things:
184312e069
While at it added trivial updater.
39 lines
871 B
Nix
39 lines
871 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, unstableGitUpdater
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rapidcheck";
|
|
version = "unstable-2023-04-16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "emil-e";
|
|
repo = "rapidcheck";
|
|
rev = "a5724ea5b0b00147109b0605c377f1e54c353ba2";
|
|
hash = "sha256-nq2VBDREkAOnvtdYr3m0TYNXx7mv9hbV5HZFVL2uTTg=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
meta = with lib; {
|
|
description = "A C++ framework for property based testing inspired by QuickCheck";
|
|
inherit (src.meta) homepage;
|
|
maintainers = with maintainers; [ ];
|
|
license = licenses.bsd2;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|