1 { lib, stdenv, fetchFromGitHub, cmake
2 , krb5, liburcu , libtirpc, libnsl
5 stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
10 owner = "nfs-ganesha";
13 sha256 = "sha256-Txtc0Oyt/WfZiMe26uMzx3HFq/YaeU6cYfjPQwh0uQg=";
16 outputs = [ "out" "dev" ];
18 substituteInPlace ntirpc/netconfig.h --replace "/etc/netconfig" "$out/etc/netconfig"
19 sed '1i#include <assert.h>' -i src/work_pool.c
22 nativeBuildInputs = [ cmake ];
23 buildInputs = [ krb5 liburcu libnsl ];
28 # Library needs a netconfig to run.
29 # Steal the file from libtirpc
30 cp ${libtirpc}/etc/netconfig $out/etc/
34 description = "Transport-independent RPC (TI-RPC)";
35 homepage = "https://github.com/nfs-ganesha/ntirpc";
36 maintainers = [ maintainers.markuskowa ];
37 platforms = platforms.linux;
38 license = licenses.bsd3;