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