home-assistant: support lightify component (#379007)
[NixPkgs.git] / pkgs / by-name / rp / rpcbind / package.nix
blobf1dadd3a78579e7d3713d5b9f095d8e51fbf0876
2   fetchgit,
3   lib,
4   stdenv,
5   pkg-config,
6   libnsl,
7   libtirpc,
8   autoreconfHook,
9   useSystemd ? true,
10   systemd,
13 stdenv.mkDerivation {
14   pname = "rpcbind";
15   version = "1.2.6";
17   src = fetchgit {
18     url = "git://git.linux-nfs.org/projects/steved/rpcbind.git";
19     rev = "c0c89b3bf2bdf304a5fe3cab626334e0cdaf1ef2";
20     hash = "sha256-aidETIZaQYzC3liDGM915wyBWpMrn4OudxEcFS/Iucw=";
21   };
23   patches = [
24     ./sunrpc.patch
25   ];
27   buildInputs = [
28     libnsl
29     libtirpc
30   ] ++ lib.optional useSystemd systemd;
32   configureFlags = [
33     "--with-systemdsystemunitdir=${
34       if useSystemd then "${placeholder "out"}/etc/systemd/system" else "no"
35     }"
36     "--enable-warmstarts"
37     "--with-rpcuser=rpc"
38   ];
40   nativeBuildInputs = [
41     autoreconfHook
42     pkg-config
43   ];
45   meta = with lib; {
46     description = "ONC RPC portmapper";
47     license = licenses.bsd3;
48     platforms = platforms.unix;
49     homepage = "https://linux-nfs.org/";
50     maintainers = with maintainers; [ abbradar ];
51     longDescription = ''
52       Universal addresses to RPC program number mapper.
53     '';
54   };