{ungoogled-,}chromium,chromedriver: 130.0.6723.58 -> 130.0.6723.69 (#351519)
[NixPkgs.git] / pkgs / servers / nfs-ganesha / default.nix
blob53a5601c5171bd1b69483dba6d6951f143297d99
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   cmake,
6   pkg-config,
7   sphinx,
8   krb5,
9   xfsprogs,
10   jemalloc,
11   dbus,
12   libcap,
13   ntirpc,
14   liburcu,
15   bison,
16   flex,
17   nfs-utils,
18   acl,
21 stdenv.mkDerivation rec {
22   pname = "nfs-ganesha";
23   version = "6.1";
25   outputs = [
26     "out"
27     "man"
28     "tools"
29   ];
31   src = fetchFromGitHub {
32     owner = "nfs-ganesha";
33     repo = "nfs-ganesha";
34     rev = "V${version}";
35     hash = "sha256-XQpbQ7NXVGVbm99d1ZEh1ckR5fd81xwZw8HorXHaeBk=";
36   };
38   preConfigure = "cd src";
40   cmakeFlags = [
41     "-DUSE_SYSTEM_NTIRPC=ON"
42     "-DSYSSTATEDIR=/var"
43     "-DENABLE_VFS_POSIX_ACL=ON"
44     "-DUSE_ACL_MAPPING=ON"
45     "-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON"
46     "-DUSE_MAN_PAGE=ON"
47   ];
49   nativeBuildInputs = [
50     cmake
51     pkg-config
52     bison
53     flex
54     sphinx
55   ];
57   buildInputs = [
58     acl
59     krb5
60     xfsprogs
61     jemalloc
62     dbus.lib
63     libcap
64     ntirpc
65     liburcu
66     nfs-utils
67   ];
69   postPatch = ''
70     substituteInPlace src/tools/mount.9P --replace "/bin/mount" "/usr/bin/env mount"
71   '';
73   postFixup = ''
74     patchelf --add-rpath $out/lib $out/bin/ganesha.nfsd
75   '';
77   postInstall = ''
78     install -Dm755 $src/src/tools/mount.9P $tools/bin/mount.9P
79   '';
81   meta = with lib; {
82     description = "NFS server that runs in user space";
83     homepage = "https://github.com/nfs-ganesha/nfs-ganesha/wiki";
84     maintainers = [ maintainers.markuskowa ];
85     platforms = platforms.linux;
86     license = licenses.lgpl3Plus;
87     mainProgram = "ganesha.nfsd";
88     outputsToInstall = [
89       "out"
90       "man"
91       "tools"
92     ];
93   };