From 5f54cfecd4914eb9932613ec00102f473ac082b9 Mon Sep 17 00:00:00 2001 From: Vladimir Krivopalov Date: Tue, 15 Aug 2023 10:44:14 -0400 Subject: [PATCH] New package: rapidcheck Rapidcheck is a QuickCheck clone for C++. This package is used by newer versions of the Nix package manager and so it needs to be introduced for the 'nix' package to be updated. Rapidcheck has no versioning or tags, the revision supported and used by Nix is currently being used when building this package. Signed-off-by: Vladimir Krivopalov --- srcpkgs/rapidcheck/template | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 srcpkgs/rapidcheck/template diff --git a/srcpkgs/rapidcheck/template b/srcpkgs/rapidcheck/template new file mode 100644 index 00000000000000..2c64136d86c5e2 --- /dev/null +++ b/srcpkgs/rapidcheck/template @@ -0,0 +1,32 @@ +# Template file for 'rapidcheck' + +# Upstream has no tags or release versioning, see: +# https://github.com/emil-e/rapidcheck/issues/255 +# Commit here was picked based on what works to build nix. +# https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/rapidcheck/default.nix +pkgname=rapidcheck +version=r1010.b78f892 +_commit=b78f89288c7e086d06e2a1e10b605d8375517a8a +revision=1 +build_style=cmake +configure_args="-DCMAKE_POSITION_INDEPENDENT_CODE=True -DRC_ENABLE_EXAMPLES=Off -DRC_ENABLE_TESTS=Off -DRC_INSTALL_ALL_EXTRAS=On" +short_desc="QuickCheck clone for C++" +maintainer="Vladimir Krivopalov " +license="BSD-2-Clause" +homepage="https://github.com/emil-e/rapidcheck" +hostmakedepends="git cmake" + +do_fetch() { + rm -rf ${wrksrc} + git clone \ + --filter=blob:none \ + https://github.com/emil-e/rapidcheck ${wrksrc} + cd ${wrksrc} + git checkout ${_commit} +} + +post_install() { + cd ${wrksrc} + cmake -P "build/cmake_install.cmake" + install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.md +}