libpipeline: apply gnulib.passthru.longdouble-redirect-patch

This commit is contained in:
Adam Joseph 2022-07-26 01:03:47 -07:00
parent cee9981b32
commit e2d44f6737

View file

@ -1,4 +1,7 @@
{ lib, stdenv, fetchurl }:
{ lib, stdenv, fetchurl
, gnulib
, runCommand
, patchutils }:
stdenv.mkDerivation rec {
pname = "libpipeline";
@ -9,7 +12,18 @@ stdenv.mkDerivation rec {
sha256 = "sha256-uLRRlJiQIqeewTF/ZKKnWxVRsqVb6gb2dwTLKi5GkLA=";
};
patches = lib.optionals stdenv.isDarwin [ ./fix-on-osx.patch ];
patches = lib.optionals stdenv.isDarwin [
./fix-on-osx.patch
] ++ [
(runCommand "longdouble-redirect-patch-extraPrefix" {} ''
${patchutils}/bin/filterdiff \
--strip=1 \
--addoldprefix=a/gl/ \
--addnewprefix=b/gl/ \
${gnulib.passthru.longdouble-redirect-patch} \
> $out
'')
];
meta = with lib; {
homepage = "http://libpipeline.nongnu.org";