mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 09:31:01 +00:00
314f187b0a
Enable warm starts support, use dedicated user.
39 lines
984 B
Nix
39 lines
984 B
Nix
{ fetchurl, stdenv, pkgconfig, libtirpc
|
|
, useSystemd ? true, systemd }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "rpcbind-${version}";
|
|
version = "0.2.4";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/rpcbind/${version}/${name}.tar.bz2";
|
|
sha256 = "0rjc867mdacag4yqvs827wqhkh27135rp9asj06ixhf71m9rljh7";
|
|
};
|
|
|
|
patches = [
|
|
./sunrpc.patch
|
|
];
|
|
|
|
buildInputs = [ libtirpc ]
|
|
++ stdenv.lib.optional useSystemd systemd;
|
|
|
|
configureFlags = [
|
|
"--with-systemdsystemunitdir=${if useSystemd then "$(out)/etc/systemd/system" else "no"}"
|
|
"--enable-warmstarts"
|
|
"--with-rpcuser=rpc"
|
|
];
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "ONC RPC portmapper";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.unix;
|
|
homepage = "http://sourceforge.net/projects/rpcbind/";
|
|
maintainers = with maintainers; [ abbradar ];
|
|
longDescription = ''
|
|
Universal addresses to RPC program number mapper.
|
|
'';
|
|
};
|
|
}
|