blob: 2dcdc8577d40ae2271f9f615d55309e9e8dbe14d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{
fetchgit,
lib,
stdenv,
pkg-config,
libnsl,
libtirpc,
autoreconfHook,
useSystemd ? true,
systemd,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "rpcbind";
version = "1.2.9";
src = fetchgit {
url = "git://git.linux-nfs.org/projects/steved/rpcbind.git";
rev = "refs/tags/rpcbind-${builtins.replaceStrings [ "." ] [ "_" ] finalAttrs.version}";
hash = "sha256-uiUGSCUkFTFl+hqzXgJEjl4WZCcMi+QxuAGmY0g+fs4=";
};
patches = [
./sunrpc.patch
];
buildInputs = [
libnsl
libtirpc
]
++ lib.optional useSystemd systemd;
configureFlags = [
"--with-systemdsystemunitdir=${
if useSystemd then "${placeholder "out"}/etc/systemd/system" else "no"
}"
"--enable-warmstarts"
"--with-rpcuser=rpc"
];
nativeBuildInputs = [
autoreconfHook
pkg-config
];
meta = {
description = "ONC RPC portmapper";
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
homepage = "https://linux-nfs.org/";
maintainers = with lib.maintainers; [ zwang20 ];
longDescription = ''
Universal addresses to RPC program number mapper.
'';
};
})
|