mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
libtirpc: 1.2.6 -> 1.2.7-rc4
This commit is contained in:
parent
b13de83972
commit
4f0b106aee
@ -1,21 +1,19 @@
|
||||
{ fetchurl, stdenv, autoreconfHook, libkrb5 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libtirpc-1.2.6";
|
||||
pname = "libtirpc";
|
||||
version = "1.2.7-rc4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/libtirpc/${name}.tar.bz2";
|
||||
sha256 = "1k6i6wma3xs7gmp54z587nd4yi5wrvg2ycl5g36zjnhx32jyjy22";
|
||||
url = "http://git.linux-nfs.org/?p=steved/libtirpc.git;a=snapshot;h=5ca4ca92f629d9d83e83544b9239abaaacf0a527;sf=tgz";
|
||||
sha256 = "0w26yf9bwkpqj52sqd3n250dg9jlqnr8bjv0kc4fl5hkrv8akj8i";
|
||||
name = "${pname}-${version}.tar.gz";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
postPatch = ''
|
||||
sed '1i#include <stdint.h>' -i src/xdr_sizeof.c
|
||||
'' + stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||
substituteInPlace tirpc/rpc/types.h \
|
||||
--replace '#if defined __APPLE_CC__ || defined __FreeBSD__' \
|
||||
'#if defined __APPLE_CC__ || defined __FreeBSD__ || !defined __GLIBC__'
|
||||
'';
|
||||
|
||||
KRB5_CONFIG = "${libkrb5.dev}/bin/krb5-config";
|
||||
|
Loading…
Reference in New Issue
Block a user