aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/servers/nfs-ganesha/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/servers/nfs-ganesha/default.nix')
-rw-r--r--nixpkgs/pkgs/servers/nfs-ganesha/default.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/nfs-ganesha/default.nix b/nixpkgs/pkgs/servers/nfs-ganesha/default.nix
new file mode 100644
index 00000000000..adbcbb63759
--- /dev/null
+++ b/nixpkgs/pkgs/servers/nfs-ganesha/default.nix
@@ -0,0 +1,48 @@
+{ stdenv, fetchFromGitHub, cmake, pkg-config
+, krb5, xfsprogs, jemalloc, dbus, libcap
+, ntirpc, liburcu, bison, flex, nfs-utils
+} :
+
+stdenv.mkDerivation rec {
+ pname = "nfs-ganesha";
+ version = "3.3";
+
+ src = fetchFromGitHub {
+ owner = "nfs-ganesha";
+ repo = "nfs-ganesha";
+ rev = "V${version}";
+ sha256 = "1w48rqrbqah0hnirvjdz8lyr9ah8b73j3cgsppb04gnrmpssgmb6";
+ };
+
+ 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;
+ };
+}