Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 722 B view raw
1{ stdenv, fetchFromGitHub, cmake }: 2 3stdenv.mkDerivation rec { 4 pname = "utf8cpp"; 5 version = "3.1.1"; 6 7 src = fetchFromGitHub { 8 owner = "nemtrif"; 9 repo = "utfcpp"; 10 rev = "v${version}"; 11 fetchSubmodules = true; 12 sha256 = "1s2pda75488z7c3w3a6qv31bj239248696yk5j2a1drbg2x1dpfh"; 13 }; 14 15 cmakeFlags = [ 16 "-DCMAKE_BUILD_TYPE=None" 17 "-DCMAKE_INSTALL_LIBDIR=lib" 18 "-DINSTALL_GTEST=OFF" 19 ]; 20 21 nativeBuildInputs = [ cmake ]; 22 23 doCheck = true; 24 25 meta = with stdenv.lib; { 26 homepage = "https://github.com/nemtrif/utfcpp"; 27 description = "UTF-8 with C++ in a Portable Way"; 28 license = licenses.free; 29 maintainers = with maintainers; [ jobojeha ]; 30 platforms = platforms.linux; 31 }; 32}