mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
c60deb0266
Done while I was traversing packages which I maintain to save extra clicks on urxvt (it captures semicolon as a part of URL).
36 lines
976 B
Nix
36 lines
976 B
Nix
{ fetchurl, stdenv, pkgconfig, libtirpc
|
|
, useSystemd ? true, systemd }:
|
|
|
|
let version = "0.2.3";
|
|
in stdenv.mkDerivation rec {
|
|
name = "rpcbind-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/rpcbind/${version}/${name}.tar.bz2";
|
|
sha256 = "0yyjzv4161rqxrgjcijkrawnk55rb96ha0pav48s03l2klx855wq";
|
|
};
|
|
|
|
patches = [
|
|
./sunrpc.patch
|
|
./0001-handle_reply-Don-t-use-the-xp_auth-pointer-directly.patch
|
|
];
|
|
|
|
buildInputs = [ libtirpc ]
|
|
++ stdenv.lib.optional useSystemd systemd;
|
|
|
|
configureFlags = stdenv.lib.optional (!useSystemd) "--with-systemdsystemunitdir=no";
|
|
|
|
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.
|
|
'';
|
|
};
|
|
}
|