1 { lib, stdenv, fetchFromGitHub, cmake }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 fetchSubmodules = true;
12 sha256 = "sha256-cWiGggn2GP25K/8eopvnFPq6iwcBteNI3i9Lo1Sr+ig=";
16 "-DCMAKE_INSTALL_LIBDIR=lib"
19 nativeBuildInputs = [ cmake ];
21 # Tests fail on darwin, probably due to a bug in the test framework:
22 # https://github.com/nemtrif/utfcpp/issues/84
23 doCheck = !stdenv.isDarwin;
26 homepage = "https://github.com/nemtrif/utfcpp";
27 changelog = "https://github.com/nemtrif/utfcpp/releases/tag/v${version}";
28 description = "UTF-8 with C++ in a Portable Way";
29 license = licenses.boost;
30 maintainers = with maintainers; [ jobojeha ];
31 platforms = platforms.all;