nixpkgs/pkgs/development/libraries/catch/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake }:
2015-05-25 10:38:42 +02:00
stdenv.mkDerivation rec {
pname = "catch";
2018-11-11 17:28:04 +01:00
version = "1.12.2";
2015-05-25 10:38:42 +02:00
src = fetchFromGitHub {
2017-11-17 23:10:19 +01:00
owner = "catchorg";
2015-05-25 10:38:42 +02:00
repo = "Catch";
2017-06-17 17:21:50 +02:00
rev = "v${version}";
2018-11-11 17:28:04 +01:00
sha256 = "1gdp5wm8khn02g2miz381llw3191k7309qj8s3jd6sasj01rhf23";
2015-05-25 10:38:42 +02:00
};
2017-06-17 17:21:50 +02:00
nativeBuildInputs = [ cmake ];
2017-02-02 20:47:01 +01:00
cmakeFlags = [ "-DUSE_CPP14=ON" ];
2015-05-25 10:38:42 +02:00
patches = [
# https://github.com/catchorg/Catch2/pull/2151
(fetchpatch {
url = "https://github.com/catchorg/Catch2/commit/bb6d08323f23a39eb65dd86671e68f4f5d3f2d6c.patch";
sha256 = "1vhbzx84nrhhf9zlbl6h5zmg3r5w5v833ihlswsysb9wp2i4isc5";
})
# Fix glibc-2.34 build
(fetchpatch {
url = "https://src.fedoraproject.org/rpms/catch1/raw/23276476148a657e7a45ade547f858cbf965a33a/f/catch1-sigstksz.patch";
sha256 = "sha256-XSsI3iDEZCUSbozlYWC0y/LZ7qr/5zwACpn1jHKD0yU=";
})
];
2017-02-02 20:47:01 +01:00
doCheck = true;
checkTarget = "test";
2015-05-25 10:38:42 +02:00
meta = with lib; {
2015-05-25 10:38:42 +02:00
description = "A multi-paradigm automated test framework for C++ and Objective-C (and, maybe, C)";
homepage = "http://catch-lib.net";
2015-05-25 10:38:42 +02:00
license = licenses.boost;
2017-02-02 20:47:01 +01:00
maintainers = with maintainers; [ edwtjo knedlsepp ];
platforms = with platforms; unix;
2015-05-25 10:38:42 +02:00
};
}