3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/utf8cpp/default.nix

33 lines
721 B
Nix
Raw Normal View History

2020-06-01 14:14:31 +01:00
{ stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "utf8cpp";
2020-12-29 11:02:34 +00:00
version = "3.1.2";
2020-06-01 14:14:31 +01:00
src = fetchFromGitHub {
owner = "nemtrif";
repo = "utfcpp";
rev = "v${version}";
fetchSubmodules = true;
2020-12-29 11:02:34 +00:00
sha256 = "sha256-l5sneFsuvPDIRni2x+aR9fmQ9bzXNnIiP9EzZ63sNtg=";
2020-06-01 14:14:31 +01:00
};
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=None"
"-DCMAKE_INSTALL_LIBDIR=lib"
"-DINSTALL_GTEST=OFF"
];
nativeBuildInputs = [ cmake ];
doCheck = true;
meta = with stdenv.lib; {
homepage = "https://github.com/nemtrif/utfcpp";
description = "UTF-8 with C++ in a Portable Way";
license = licenses.free;
maintainers = with maintainers; [ jobojeha ];
platforms = platforms.linux;
};
}