2020-07-09 22:27:39 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkg-config
|
|
|
|
, krb5, xfsprogs, jemalloc, dbus, libcap
|
|
|
|
, ntirpc, liburcu, bison, flex, nfs-utils
|
|
|
|
} :
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nfs-ganesha";
|
2020-12-26 13:22:38 +00:00
|
|
|
version = "3.4";
|
2020-07-09 22:27:39 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nfs-ganesha";
|
|
|
|
repo = "nfs-ganesha";
|
|
|
|
rev = "V${version}";
|
2020-12-26 13:22:38 +00:00
|
|
|
sha256 = "1qi617ppjjl38mqpbxiqhpxanq9qgqshb87cajs30rqkv9nj811k";
|
2020-07-09 22:27:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./sysstatedir.patch ];
|
|
|
|
|
|
|
|
preConfigure = "cd src";
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DUSE_SYSTEM_NTIRPC=ON" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
bison
|
|
|
|
flex
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
krb5
|
|
|
|
xfsprogs
|
|
|
|
jemalloc
|
|
|
|
dbus.lib
|
|
|
|
libcap
|
|
|
|
ntirpc
|
|
|
|
liburcu
|
|
|
|
nfs-utils
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|