Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchFromGitHub 4, autoreconfHook 5, pkg-config 6, python3 7, glib 8, jansson 9}: 10 11stdenv.mkDerivation rec { 12 version = "3.2.0"; 13 pname = "libsearpc"; 14 15 src = fetchFromGitHub { 16 owner = "haiwen"; 17 repo = "libsearpc"; 18 rev = "v${version}"; 19 sha256 = "18i5zvrp6dv6vygxx5nc93mai2p2x786n5lnf5avrin6xiz2j6hd"; 20 }; 21 22 nativeBuildInputs = [ 23 autoreconfHook 24 pkg-config 25 ]; 26 27 buildInputs = [ 28 python3 29 ]; 30 31 propagatedBuildInputs = [ 32 glib 33 jansson 34 ]; 35 36 meta = with lib; { 37 homepage = "https://github.com/haiwen/libsearpc"; 38 description = "A simple and easy-to-use C language RPC framework based on GObject System"; 39 license = licenses.lgpl3; 40 platforms = platforms.linux; 41 maintainers = with maintainers; [ greizgh ]; 42 }; 43}