a66bca1520
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
51 lines
994 B
Nix
51 lines
994 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
|
, krb5, xfsprogs, jemalloc, dbus, libcap
|
|
, ntirpc, liburcu, bison, flex, nfs-utils, acl
|
|
} :
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nfs-ganesha";
|
|
version = "4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nfs-ganesha";
|
|
repo = "nfs-ganesha";
|
|
rev = "V${version}";
|
|
sha256 = "sha256-9Hn1teHo5sHJLYQYM+nAIwq7Gckxl1TCTk/GxLME1qo=";
|
|
};
|
|
|
|
preConfigure = "cd src";
|
|
|
|
cmakeFlags = [
|
|
"-DUSE_SYSTEM_NTIRPC=ON"
|
|
"-DSYSSTATEDIR=/var"
|
|
"-DENABLE_VFS_POSIX_ACL=ON"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
bison
|
|
flex
|
|
];
|
|
|
|
buildInputs = [
|
|
acl
|
|
krb5
|
|
xfsprogs
|
|
jemalloc
|
|
dbus.lib
|
|
libcap
|
|
ntirpc
|
|
liburcu
|
|
nfs-utils
|
|
];
|
|
|
|
meta = with 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;
|
|
};
|
|
}
|