Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
2, curl, zeromq, czmq, libsodium }:
3
4stdenv.mkDerivation rec {
5 pname = "prime-server";
6 version = "0.7.0";
7
8 src = fetchFromGitHub {
9 owner = "kevinkreiser";
10 repo = "prime_server";
11 rev = version;
12 sha256 = "0izmmvi3pvidhlrgfpg4ccblrw6fil3ddxg5cfxsz4qbh399x83w";
13 fetchSubmodules = true;
14 };
15
16 nativeBuildInputs = [ cmake pkg-config ];
17 buildInputs = [ curl zeromq czmq libsodium ];
18
19 # https://github.com/kevinkreiser/prime_server/issues/95
20 env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=unused-variable" ];
21
22 meta = with lib; {
23 description = "Non-blocking (web)server API for distributed computing and SOA based on zeromq";
24 homepage = "https://github.com/kevinkreiser/prime_server";
25 license = licenses.bsd2;
26 maintainers = [ maintainers.Thra11 ];
27 platforms = platforms.linux;
28 };
29}