2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
2020-08-20 17:08:02 +00:00
|
|
|
, krb5, xfsprogs, jemalloc, dbus, libcap
|
2022-11-21 17:40:18 +00:00
|
|
|
, ntirpc, liburcu, bison, flex, nfs-utils, acl
|
2020-08-20 17:08:02 +00:00
|
|
|
} :
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nfs-ganesha";
|
2022-11-27 09:42:12 +00:00
|
|
|
version = "4.1";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nfs-ganesha";
|
|
|
|
repo = "nfs-ganesha";
|
|
|
|
rev = "V${version}";
|
2022-11-27 09:42:12 +00:00
|
|
|
sha256 = "sha256-M7lQkO36I4Cwxs49XdxsUVVI2/Nz7fhU36j9fxUuMfM=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = "cd src";
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DUSE_SYSTEM_NTIRPC=ON" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
bison
|
|
|
|
flex
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-11-21 17:40:18 +00:00
|
|
|
acl
|
2020-08-20 17:08:02 +00:00
|
|
|
krb5
|
|
|
|
xfsprogs
|
|
|
|
jemalloc
|
|
|
|
dbus.lib
|
|
|
|
libcap
|
|
|
|
ntirpc
|
|
|
|
liburcu
|
|
|
|
nfs-utils
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-08-20 17:08:02 +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;
|
|
|
|
};
|
|
|
|
}
|