at 24.05-pre 871 B view raw
1{ lib, stdenv, fetchFromGitHub, cmake }: 2 3stdenv.mkDerivation rec { 4 pname = "utf8cpp"; 5 version = "3.2.5"; 6 7 src = fetchFromGitHub { 8 owner = "nemtrif"; 9 repo = "utfcpp"; 10 rev = "v${version}"; 11 fetchSubmodules = true; 12 sha256 = "sha256-cWiGggn2GP25K/8eopvnFPq6iwcBteNI3i9Lo1Sr+ig="; 13 }; 14 15 cmakeFlags = [ 16 "-DCMAKE_INSTALL_LIBDIR=lib" 17 ]; 18 19 nativeBuildInputs = [ cmake ]; 20 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; 24 25 meta = with lib; { 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; 32 }; 33}