nixpkgs/pkgs/servers/nfs-ganesha/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
994 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
2020-07-09 23:27:39 +02:00
, krb5, xfsprogs, jemalloc, dbus, libcap
2022-11-10 11:36:38 +01:00
, ntirpc, liburcu, bison, flex, nfs-utils, acl
2020-07-09 23:27:39 +02:00
} :
stdenv.mkDerivation rec {
pname = "nfs-ganesha";
2022-12-06 14:32:32 +01:00
version = "4.2";
2020-07-09 23:27:39 +02:00
src = fetchFromGitHub {
owner = "nfs-ganesha";
repo = "nfs-ganesha";
rev = "V${version}";
2022-12-06 14:32:32 +01:00
sha256 = "sha256-9Hn1teHo5sHJLYQYM+nAIwq7Gckxl1TCTk/GxLME1qo=";
2020-07-09 23:27:39 +02:00
};
preConfigure = "cd src";
2022-12-06 14:32:32 +01:00
cmakeFlags = [
"-DUSE_SYSTEM_NTIRPC=ON"
"-DSYSSTATEDIR=/var"
"-DENABLE_VFS_POSIX_ACL=ON"
];
2020-07-09 23:27:39 +02:00
nativeBuildInputs = [
cmake
pkg-config
bison
flex
];
buildInputs = [
2022-11-10 11:36:38 +01:00
acl
2020-07-09 23:27:39 +02:00
krb5
xfsprogs
jemalloc
dbus.lib
libcap
ntirpc
liburcu
nfs-utils
];
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;
};
}