2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 20:53:48 +00:00
nixpkgs/pkgs/servers/rpcbind/default.nix

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

40 lines
1.0 KiB
Nix
Raw Normal View History

{ fetchgit, lib, stdenv, pkg-config, libnsl, libtirpc, autoreconfHook
2015-02-18 02:02:46 +00:00
, useSystemd ? true, systemd }:
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "rpcbind";
2021-10-29 01:30:57 +00:00
version = "1.2.6";
2016-12-01 00:18:08 +00:00
src = fetchgit {
url = "git://git.linux-nfs.org/projects/steved/rpcbind.git";
rev = "c0c89b3bf2bdf304a5fe3cab626334e0cdaf1ef2";
2021-10-29 01:30:57 +00:00
sha256 = "sha256-aidETIZaQYzC3liDGM915wyBWpMrn4OudxEcFS/Iucw=";
};
2016-01-13 18:16:28 +00:00
patches = [
./sunrpc.patch
];
2017-11-07 19:34:51 +00:00
buildInputs = [ libnsl libtirpc ]
2021-01-15 07:07:56 +00:00
++ 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 ];
2015-02-18 02:02:46 +00:00
meta = with lib; {
description = "ONC RPC portmapper";
2015-02-18 02:02:46 +00:00
license = licenses.bsd3;
platforms = platforms.unix;
homepage = "https://linux-nfs.org/";
2015-02-18 02:02:46 +00:00
maintainers = with maintainers; [ abbradar ];
longDescription = ''
Universal addresses to RPC program number mapper.
'';
};
}