mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
33 lines
793 B
Nix
33 lines
793 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "utf8cpp";
|
|
version = "3.2.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nemtrif";
|
|
repo = "utfcpp";
|
|
rev = "v${version}";
|
|
fetchSubmodules = true;
|
|
sha256 = "sha256-PnHbbjsryRwMMu517ta18qNgwOM6hRnVmXmR3fzS1+4=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|