diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/utf8cpp')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/utf8cpp/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/utf8cpp/default.nix b/nixpkgs/pkgs/development/libraries/utf8cpp/default.nix new file mode 100644 index 000000000000..a6d9628a6c38 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/utf8cpp/default.nix @@ -0,0 +1,30 @@ +{ lib, stdenv, fetchFromGitHub, cmake }: + +stdenv.mkDerivation rec { + pname = "utf8cpp"; + version = "3.2.1"; + + src = fetchFromGitHub { + owner = "nemtrif"; + repo = "utfcpp"; + rev = "v${version}"; + fetchSubmodules = true; + sha256 = "0gsbwif97i025bxgyax4fbf6v9z44zrca4s6wwd8x36ac8qzjppf"; + }; + + cmakeFlags = [ + "-DCMAKE_INSTALL_LIBDIR=lib" + ]; + + nativeBuildInputs = [ cmake ]; + + doCheck = true; + + 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; + }; +} |