2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
2020-07-09 23:27:39 +02:00
|
|
|
, krb5, xfsprogs, jemalloc, dbus, libcap
|
|
|
|
, ntirpc, liburcu, bison, flex, nfs-utils
|
|
|
|
} :
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nfs-ganesha";
|
2020-12-26 14:22:38 +01:00
|
|
|
version = "3.4";
|
2020-07-09 23:27:39 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nfs-ganesha";
|
|
|
|
repo = "nfs-ganesha";
|
|
|
|
rev = "V${version}";
|
2020-12-26 14:22:38 +01:00
|
|
|
sha256 = "1qi617ppjjl38mqpbxiqhpxanq9qgqshb87cajs30rqkv9nj811k";
|
2020-07-09 23:27:39 +02: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
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-07-09 23:27:39 +02: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;
|
|
|
|
};
|
|
|
|
}
|