3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/utf8cpp/default.nix
sternenseemann 1b6a6c0522 utf8cpp: disable tests on darwin
Ever since the test framework was changed, tests started to fail on
Darwin due to an exception being thrown somewhere in the test framework
code. As this failure doesn't indicate a bug in utf8cpp, we can work
around this by disabling the test suite on darwin.

Closes #144265.
Reference https://github.com/nemtrif/utfcpp/issues/84.
2021-11-03 11:09:17 +01:00

33 lines
794 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "utf8cpp";
version = "3.2.1";
src = fetchFromGitHub {
owner = "nemtrif";
repo = "utfcpp";
rev = "v${version}";
fetchSubmodules = true;
sha256 = "0gsbwif97i025bxgyax4fbf6v9z44zrca4s6wwd8x36ac8qzjppf";
};
cmakeFlags = [
"-DCMAKE_INSTALL_LIBDIR=lib"
];
nativeBuildInputs = [ cmake ];
# Tests fail on darwin, probably due to a bug in the test framework:
# https://github.com/nemtrif/utfcpp/issues/84
doCheck = !stdenv.isDarwin;
meta = with lib; {
homepage = "https://github.com/nemtrif/utfcpp";
description = "UTF-8 with C++ in a Portable Way";
license = licenses.boost;
maintainers = with maintainers; [ jobojeha ];
platforms = platforms.all;
};
}