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