21 stdenv.mkDerivation rec {
22 pname = "nfs-ganesha";
31 src = fetchFromGitHub {
32 owner = "nfs-ganesha";
35 hash = "sha256-XQpbQ7NXVGVbm99d1ZEh1ckR5fd81xwZw8HorXHaeBk=";
38 preConfigure = "cd src";
41 "-DUSE_SYSTEM_NTIRPC=ON"
43 "-DENABLE_VFS_POSIX_ACL=ON"
44 "-DUSE_ACL_MAPPING=ON"
45 "-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON"
70 substituteInPlace src/tools/mount.9P --replace "/bin/mount" "/usr/bin/env mount"
74 patchelf --add-rpath $out/lib $out/bin/ganesha.nfsd
78 install -Dm755 $src/src/tools/mount.9P $tools/bin/mount.9P
82 description = "NFS server that runs in user space";
83 homepage = "https://github.com/nfs-ganesha/nfs-ganesha/wiki";
84 maintainers = [ maintainers.markuskowa ];
85 platforms = platforms.linux;
86 license = licenses.lgpl3Plus;
87 mainProgram = "ganesha.nfsd";