Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, cmake 2 # passthru.tests 3, tmux 4, fcft 5, arrow-cpp 6}: 7 8stdenv.mkDerivation rec { 9 pname = "utf8proc"; 10 version = "2.8.0"; 11 12 src = fetchFromGitHub { 13 owner = "JuliaStrings"; 14 repo = pname; 15 rev = "v${version}"; 16 sha256 = "sha256-/lSD78kj133rpcSAOh8T8XFW/Z0c3JKkGQM5Z6DcMtU="; 17 }; 18 19 nativeBuildInputs = [ cmake ]; 20 21 cmakeFlags = [ 22 "-DBUILD_SHARED_LIBS=ON" 23 "-DUTF8PROC_ENABLE_TESTING=ON" 24 ]; 25 26 doCheck = true; 27 28 passthru.tests = { 29 inherit fcft tmux arrow-cpp; 30 }; 31 32 meta = with lib; { 33 description = "A clean C library for processing UTF-8 Unicode data"; 34 homepage = "https://juliastrings.github.io/utf8proc/"; 35 license = licenses.mit; 36 platforms = platforms.all; 37 maintainers = [ maintainers.ftrvxmtrx maintainers.sternenseemann ]; 38 }; 39}