mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
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.
This commit is contained in:
parent
f119dfa5be
commit
7ea8d2b2be
|
@ -6,6 +6,7 @@
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "nfs-ganesha";
|
pname = "nfs-ganesha";
|
||||||
version = "5.7";
|
version = "5.7";
|
||||||
|
outputs = [ "out" "tools" ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nfs-ganesha";
|
owner = "nfs-ganesha";
|
||||||
|
@ -43,10 +44,18 @@ stdenv.mkDerivation rec {
|
||||||
nfs-utils
|
nfs-utils
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace src/tools/mount.9P --replace "/bin/mount" "/usr/bin/env mount"
|
||||||
|
'';
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
patchelf --add-rpath $out/lib $out/bin/ganesha.nfsd
|
patchelf --add-rpath $out/lib $out/bin/ganesha.nfsd
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
install -Dm755 $src/src/tools/mount.9P $tools/bin/mount.9P
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "NFS server that runs in user space";
|
description = "NFS server that runs in user space";
|
||||||
homepage = "https://github.com/nfs-ganesha/nfs-ganesha/wiki";
|
homepage = "https://github.com/nfs-ganesha/nfs-ganesha/wiki";
|
||||||
|
@ -54,5 +63,6 @@ stdenv.mkDerivation rec {
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
license = licenses.lgpl3Plus;
|
license = licenses.lgpl3Plus;
|
||||||
mainProgram = "ganesha.nfsd";
|
mainProgram = "ganesha.nfsd";
|
||||||
|
outputsToInstall = [ "out" "tools" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue