1 { fetchurl, lib, stdenv, autoreconfHook, libkrb5 }:
3 stdenv.mkDerivation rec {
8 url = "http://git.linux-nfs.org/?p=steved/libtirpc.git;a=snapshot;h=refs/tags/libtirpc-${lib.replaceStrings ["."] ["-"] version};sf=tgz";
9 hash = "sha256-bq2zfqfMJsJ6gezLCUTlNiRXJhFxFslY4iW+4kpOPVE=";
10 name = "${pname}-${version}.tar.gz";
13 outputs = [ "out" "dev" ];
15 KRB5_CONFIG = "${libkrb5.dev}/bin/krb5-config";
16 nativeBuildInputs = [ autoreconfHook ];
17 propagatedBuildInputs = [ libkrb5 ];
21 sed -es"|/etc/netconfig|$out/etc/netconfig|g" -i doc/Makefile.in tirpc/netconfig.h
24 enableParallelBuilding = true;
33 homepage = "https://sourceforge.net/projects/libtirpc/";
34 description = "Transport-independent Sun RPC implementation (TI-RPC)";
35 license = licenses.bsd3;
36 platforms = platforms.linux;
37 maintainers = with maintainers; [ abbradar ];
39 Currently, NFS commands use the SunRPC routines provided by the
40 glibc. These routines do not support IPv6 addresses. Ulrich
41 Drepper, who is the maintainer of the glibc, refuses any change in
42 the glibc concerning the RPC. He wants the RPC to become a separate
43 library. Other OS (NetBSD, FreeBSD, Solarix, HP-UX, AIX) have
44 migrated their SunRPC library to a TI-RPC (Transport Independent
45 RPC) implementation. This implementation allows the support of
46 other transports than UDP and TCP over IPv4. FreeBSD provides a
47 TI-RPC library ported from NetBSD with improvements. This library
48 already supports IPv6. So, the FreeBSD release 5.2.1 TI-RPC has
49 been ported to replace the SunRPC of the glibc.