2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
2020-07-09 21:27:39 +00:00
|
|
|
, krb5, xfsprogs, jemalloc, dbus, libcap
|
2022-11-10 10:36:38 +00:00
|
|
|
, ntirpc, liburcu, bison, flex, nfs-utils, acl
|
2020-07-09 21:27:39 +00:00
|
|
|
} :
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nfs-ganesha";
|
2023-11-07 21:27:43 +00:00
|
|
|
version = "5.7";
|
2020-07-09 21:27:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nfs-ganesha";
|
|
|
|
repo = "nfs-ganesha";
|
|
|
|
rev = "V${version}";
|
2023-11-07 21:27:43 +00:00
|
|
|
sha256 = "sha256-4GYte9kPUR4kFHrUzHXtiMGbuRhZ+4iw1hmqi+geljc=";
|
2020-07-09 21:27:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = "cd src";
|
|
|
|
|
2022-12-06 13:32:32 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DUSE_SYSTEM_NTIRPC=ON"
|
|
|
|
"-DSYSSTATEDIR=/var"
|
|
|
|
"-DENABLE_VFS_POSIX_ACL=ON"
|
2023-04-23 16:36:35 +00:00
|
|
|
"-DUSE_ACL_MAPPING=ON"
|
2023-08-03 21:33:17 +00:00
|
|
|
"-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON"
|
2022-12-06 13:32:32 +00:00
|
|
|
];
|
2020-07-09 21:27:39 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
bison
|
|
|
|
flex
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-11-10 10:36:38 +00:00
|
|
|
acl
|
2020-07-09 21:27:39 +00:00
|
|
|
krb5
|
|
|
|
xfsprogs
|
|
|
|
jemalloc
|
|
|
|
dbus.lib
|
|
|
|
libcap
|
|
|
|
ntirpc
|
|
|
|
liburcu
|
|
|
|
nfs-utils
|
|
|
|
];
|
|
|
|
|
2023-06-18 08:26:34 +00:00
|
|
|
postFixup = ''
|
|
|
|
patchelf --add-rpath $out/lib $out/bin/ganesha.nfsd
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-07-09 21:27:39 +00:00
|
|
|
description = "NFS server that runs in user space";
|
|
|
|
homepage = "https://github.com/nfs-ganesha/nfs-ganesha/wiki";
|
|
|
|
maintainers = [ maintainers.markuskowa ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
};
|
|
|
|
}
|