base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / li / libtirpc / package.nix
blob1a1cf14c9ea883168d6d5232d454b80fd73cce22
1 { fetchurl, lib, stdenv, autoreconfHook, libkrb5 }:
3 stdenv.mkDerivation rec {
4   pname = "libtirpc";
5   version = "1.3.5";
7   src = fetchurl {
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";
11   };
13   outputs = [ "out" "dev" ];
15   KRB5_CONFIG = "${libkrb5.dev}/bin/krb5-config";
16   nativeBuildInputs = [ autoreconfHook ];
17   propagatedBuildInputs = [ libkrb5 ];
18   strictDeps = true;
20   preConfigure = ''
21     sed -es"|/etc/netconfig|$out/etc/netconfig|g" -i doc/Makefile.in tirpc/netconfig.h
22   '';
24   enableParallelBuilding = true;
26   preInstall = ''
27     mkdir -p $out/etc
28   '';
30   doCheck = true;
32   meta = with lib; {
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 ];
38     longDescription = ''
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.
50     '';
51   };