depot/third_party/nixpkgs/pkgs/development/libraries/utf8cpp/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

33 lines
871 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "utf8cpp";
version = "3.2.5";
src = fetchFromGitHub {
owner = "nemtrif";
repo = "utfcpp";
rev = "v${version}";
fetchSubmodules = true;
sha256 = "sha256-cWiGggn2GP25K/8eopvnFPq6iwcBteNI3i9Lo1Sr+ig=";
};
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";
changelog = "https://github.com/nemtrif/utfcpp/releases/tag/v${version}";
description = "UTF-8 with C++ in a Portable Way";
license = licenses.boost;
maintainers = with maintainers; [ jobojeha ];
platforms = platforms.all;
};
}