summary refs log tree commit diff
path: root/pkgs/servers/rpcbind/default.nix
blob: 33965299a9b29837fe7cc419036a9e8741916de1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ fetchurl, stdenv, libtirpc }:

stdenv.mkDerivation rec {
  name = "rpcbind-0.2.0";
  
  src = fetchurl {
    url = "http://freefr.dl.sourceforge.net/project/rpcbind/rpcbind/0.2.0/rpcbind-0.2.0.tar.bz2";
    sha256 = "c92f263e0353887f16379d7708ef1fb4c7eedcf20448bc1e4838f59497a00de3";
  };

  patches = [ ./sunrpc.patch ];

  preConfigure = ''
    export CPPFLAGS=-I${libtirpc}/include/tirpc
  '';

  buildInputs = [ libtirpc ];

  meta = {
    description = "ONC RPC portmapper";
    license = "BSD";
    longDescription = ''
      Universal addresses to RPC program number mapper.
    '';
  };
}