nixpkgs/pkgs/by-name/li/libtirpc/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

53 lines
1.8 KiB
Nix

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