forked from mirrors/nixpkgs
2c6eaef83e
In https://github.com/NixOS/nixpkgs/issues/76927, we found that xmemdup is missing when compiling some conftest for gnustep-base. It’s unclear why this happens but it appears to be from the update to gcc9. Adding libiberty gives us that symbol and fixes things. What’s less clear is why this happens to begin with. Fixes #76927
46 lines
1 KiB
Nix
46 lines
1 KiB
Nix
{ aspell, audiofile
|
|
, gsmakeDerivation
|
|
, cups
|
|
, fetchurl
|
|
, gmp, gnutls
|
|
, libffi, libbfd
|
|
, libjpeg, libtiff, libpng, giflib, libungif
|
|
, libxml2, libxslt, libiconv
|
|
, libobjc, libgcrypt
|
|
, icu
|
|
, pkgconfig, portaudio
|
|
, libiberty
|
|
}:
|
|
let
|
|
version = "1.26.0";
|
|
in
|
|
gsmakeDerivation {
|
|
name = "gnustep-base-${version}";
|
|
src = fetchurl {
|
|
url = "ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-base-${version}.tar.gz";
|
|
sha256 = "0ws16rwqx0qvqpyjsxbdylfpkgjr19nqc9i3b30wywqcqrkc12zn";
|
|
};
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
propagatedBuildInputs = [
|
|
aspell audiofile
|
|
cups
|
|
gmp gnutls
|
|
libffi libbfd
|
|
libjpeg libtiff libpng giflib libungif
|
|
libxml2 libxslt libiconv
|
|
libobjc libgcrypt
|
|
icu
|
|
portaudio
|
|
libiberty
|
|
];
|
|
patches = [ ./fixup-paths.patch ];
|
|
|
|
# Bump to gcc9 has give missing xmemdup symbols. Need libiberty here
|
|
# to resolve it, unclear why. See #76927 for more info
|
|
NIX_LDFLAGS = "-liberty";
|
|
|
|
meta = {
|
|
description = "An implementation of AppKit and Foundation libraries of OPENSTEP and Cocoa";
|
|
};
|
|
}
|