Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 39 lines 1.1 kB view raw
1{ fetchgit, lib, stdenv, pkg-config, libnsl, libtirpc, autoreconfHook 2, useSystemd ? true, systemd }: 3 4stdenv.mkDerivation { 5 pname = "rpcbind"; 6 version = "1.2.6"; 7 8 src = fetchgit { 9 url = "git://git.linux-nfs.org/projects/steved/rpcbind.git"; 10 rev = "c0c89b3bf2bdf304a5fe3cab626334e0cdaf1ef2"; 11 sha256 = "sha256-aidETIZaQYzC3liDGM915wyBWpMrn4OudxEcFS/Iucw="; 12 }; 13 14 patches = [ 15 ./sunrpc.patch 16 ]; 17 18 buildInputs = [ libnsl libtirpc ] 19 ++ lib.optional useSystemd systemd; 20 21 configureFlags = [ 22 "--with-systemdsystemunitdir=${if useSystemd then "${placeholder "out"}/etc/systemd/system" else "no"}" 23 "--enable-warmstarts" 24 "--with-rpcuser=rpc" 25 ]; 26 27 nativeBuildInputs = [ autoreconfHook pkg-config ]; 28 29 meta = with lib; { 30 description = "ONC RPC portmapper"; 31 license = licenses.bsd3; 32 platforms = platforms.unix; 33 homepage = "https://linux-nfs.org/"; 34 maintainers = with maintainers; [ abbradar ]; 35 longDescription = '' 36 Universal addresses to RPC program number mapper. 37 ''; 38 }; 39}