1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/pkgs/servers/rpcbind/default.nix

33 lines
899 B
Nix
Raw Normal View History

2015-02-17 21:02:46 -05:00
{ fetchurl, stdenv, pkgconfig, libtirpc
, useSystemd ? true, systemd }:
let version = "0.2.3";
2015-02-17 21:02:46 -05:00
in stdenv.mkDerivation rec {
name = "rpcbind-${version}";
src = fetchurl {
2015-02-17 21:02:46 -05:00
url = "mirror://sourceforge/rpcbind/${version}/${name}.tar.bz2";
sha256 = "0yyjzv4161rqxrgjcijkrawnk55rb96ha0pav48s03l2klx855wq";
};
patches = [ ./sunrpc.patch ];
2015-02-17 21:02:46 -05:00
buildInputs = [ libtirpc ]
++ stdenv.lib.optional useSystemd systemd;
2015-02-17 21:02:46 -05:00
configureFlags = stdenv.lib.optional (!useSystemd) "--with-systemdsystemunitdir=no";
2015-02-17 21:02:46 -05:00
nativeBuildInputs = [ pkgconfig ];
meta = with stdenv.lib; {
description = "ONC RPC portmapper";
2015-02-17 21:02:46 -05:00
license = licenses.bsd3;
platforms = platforms.unix;
2015-05-18 10:06:42 -04:00
homepage = http://sourceforge.net/projects/rpcbind/;
2015-02-17 21:02:46 -05:00
maintainers = with maintainers; [ abbradar ];
longDescription = ''
Universal addresses to RPC program number mapper.
'';
};
}