Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 22.05-pre 46 lines 917 B view raw
1{ lib 2, gcc11Stdenv 3, fetchFromGitLab 4, makeWrapper 5, cmake 6, spdlog 7, nlohmann_json 8, systemd 9}: 10 11gcc11Stdenv.mkDerivation rec { 12 pname = "ananicy-cpp"; 13 version = "unstable-2021-10-13"; 14 15 src = fetchFromGitLab { 16 owner = "ananicy-cpp"; 17 repo = "ananicy-cpp"; 18 rev = "6a14fe7353221c89347eddbbcafb35cf5fee4758"; 19 sha256 = "sha256-V0QPXC17ZD2c4MK3DAkzoPgKOU5V5BjfQKUk7I6f8WM="; 20 }; 21 22 nativeBuildInputs = [ 23 makeWrapper 24 cmake 25 ]; 26 27 buildInputs = [ 28 spdlog 29 nlohmann_json 30 systemd 31 ]; 32 33 cmakeFlags = [ 34 "-DUSE_EXTERNAL_JSON=yON" 35 "-DUSE_EXTERNAL_SPDLOG=ON" 36 "-DUSE_EXTERNAL_FMTLIB=ON" 37 ]; 38 39 meta = with lib; { 40 homepage = "https://gitlab.com/ananicy-cpp/ananicy-cpp"; 41 description = "Rewrite of ananicy in c++ for lower cpu and memory usage"; 42 license = licenses.gpl3Only; 43 platforms = platforms.linux; 44 maintainers = with maintainers; [ artturin ]; 45 }; 46}