nfs-ganesha: add tools output for mount.9P helper

The nfs-ganesha mount.9P helper is a standalone shell script that makes
some aspects of mounting a 9P filesystem easier, e.g. instead of:

mount -t 9p 192.168.10.2 /mnt -oaname=/home

it allows the familiar syntax:

mount -t 9P 192.168.10.2:/home /mnt

As the mount helper is independent of the server, it's added as
separate output.

+10
+10
pkgs/servers/nfs-ganesha/default.nix
··· 6 stdenv.mkDerivation rec { 7 pname = "nfs-ganesha"; 8 version = "5.7"; 9 10 src = fetchFromGitHub { 11 owner = "nfs-ganesha"; ··· 43 nfs-utils 44 ]; 45 46 postFixup = '' 47 patchelf --add-rpath $out/lib $out/bin/ganesha.nfsd 48 ''; 49 50 meta = with lib; { 51 description = "NFS server that runs in user space"; 52 homepage = "https://github.com/nfs-ganesha/nfs-ganesha/wiki"; ··· 54 platforms = platforms.linux; 55 license = licenses.lgpl3Plus; 56 mainProgram = "ganesha.nfsd"; 57 }; 58 }
··· 6 stdenv.mkDerivation rec { 7 pname = "nfs-ganesha"; 8 version = "5.7"; 9 + outputs = [ "out" "tools" ]; 10 11 src = fetchFromGitHub { 12 owner = "nfs-ganesha"; ··· 44 nfs-utils 45 ]; 46 47 + postPatch = '' 48 + substituteInPlace src/tools/mount.9P --replace "/bin/mount" "/usr/bin/env mount" 49 + ''; 50 + 51 postFixup = '' 52 patchelf --add-rpath $out/lib $out/bin/ganesha.nfsd 53 ''; 54 55 + postInstall = '' 56 + install -Dm755 $src/src/tools/mount.9P $tools/bin/mount.9P 57 + ''; 58 + 59 meta = with lib; { 60 description = "NFS server that runs in user space"; 61 homepage = "https://github.com/nfs-ganesha/nfs-ganesha/wiki"; ··· 63 platforms = platforms.linux; 64 license = licenses.lgpl3Plus; 65 mainProgram = "ganesha.nfsd"; 66 + outputsToInstall = [ "out" "tools" ]; 67 }; 68 }