Merge pull request #287706 from a3f/nfs-ganesha-mount-9P

nfs-ganesha: add tools output for mount.9P helper
This commit is contained in:
markuskowa 2024-02-18 22:20:50 +01:00 committed by GitHub
commit bc98ebb439
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,6 +6,7 @@
stdenv.mkDerivation rec {
pname = "nfs-ganesha";
version = "5.7";
outputs = [ "out" "tools" ];
src = fetchFromGitHub {
owner = "nfs-ganesha";
@ -43,10 +44,18 @@ stdenv.mkDerivation rec {
nfs-utils
];
postPatch = ''
substituteInPlace src/tools/mount.9P --replace "/bin/mount" "/usr/bin/env mount"
'';
postFixup = ''
patchelf --add-rpath $out/lib $out/bin/ganesha.nfsd
'';
postInstall = ''
install -Dm755 $src/src/tools/mount.9P $tools/bin/mount.9P
'';
meta = with lib; {
description = "NFS server that runs in user space";
homepage = "https://github.com/nfs-ganesha/nfs-ganesha/wiki";
@ -54,5 +63,6 @@ stdenv.mkDerivation rec {
platforms = platforms.linux;
license = licenses.lgpl3Plus;
mainProgram = "ganesha.nfsd";
outputsToInstall = [ "out" "tools" ];
};
}