nixpkgs-suyu/pkgs/servers/rpcbind/default.nix

40 lines
1 KiB
Nix
Raw Normal View History

{ fetchgit, stdenv, pkgconfig, libnsl, libtirpc, autoreconfHook
2015-02-18 03:02:46 +01:00
, useSystemd ? true, systemd }:
stdenv.mkDerivation rec {
2015-02-18 03:02:46 +01:00
name = "rpcbind-${version}";
version = "1.2.5";
2016-12-01 01:18:08 +01:00
src = fetchgit {
url = "git://git.linux-nfs.org/projects/steved/rpcbind.git";
rev = "c0c89b3bf2bdf304a5fe3cab626334e0cdaf1ef2";
sha256 = "1k5rr0pia70ifyp877rbjdd82377fp7ii0sqvv18qhashr6489va";
};
2016-01-13 19:16:28 +01:00
patches = [
./sunrpc.patch
];
2017-11-07 20:34:51 +01:00
buildInputs = [ libnsl libtirpc ]
2015-02-18 03:02:46 +01:00
++ stdenv.lib.optional useSystemd systemd;
configureFlags = [
"--with-systemdsystemunitdir=${if useSystemd then "${placeholder "out"}/etc/systemd/system" else "no"}"
"--enable-warmstarts"
"--with-rpcuser=rpc"
];
nativeBuildInputs = [ autoreconfHook pkgconfig ];
2015-02-18 03:02:46 +01:00
meta = with stdenv.lib; {
description = "ONC RPC portmapper";
2015-02-18 03:02:46 +01:00
license = licenses.bsd3;
platforms = platforms.unix;
homepage = https://linux-nfs.org/;
2015-02-18 03:02:46 +01:00
maintainers = with maintainers; [ abbradar ];
longDescription = ''
Universal addresses to RPC program number mapper.
'';
};
}