Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / utf8cpp / default.nix
blob764f991c4467ca45f82bf07b1dc2fbbbef330e0f
1 { lib, stdenv, fetchFromGitHub, cmake }:
3 stdenv.mkDerivation rec {
4   pname = "utf8cpp";
5   version = "3.2.5";
7   src = fetchFromGitHub {
8     owner = "nemtrif";
9     repo = "utfcpp";
10     rev = "v${version}";
11     fetchSubmodules = true;
12     sha256 = "sha256-cWiGggn2GP25K/8eopvnFPq6iwcBteNI3i9Lo1Sr+ig=";
13   };
15   cmakeFlags = [
16     "-DCMAKE_INSTALL_LIBDIR=lib"
17   ];
19   nativeBuildInputs = [ cmake ];
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;
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   };