2024-04-21 15:54:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, aspell
|
|
|
|
, audiofile
|
|
|
|
, make
|
|
|
|
, wrapGNUstepAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, cups
|
2021-07-14 22:03:04 +00:00
|
|
|
, fetchzip
|
2022-01-07 04:07:37 +00:00
|
|
|
, fetchpatch
|
2024-04-21 15:54:59 +00:00
|
|
|
, gmp
|
|
|
|
, gnutls
|
|
|
|
, libffi
|
|
|
|
, binutils-unwrapped
|
|
|
|
, libjpeg
|
|
|
|
, libtiff
|
|
|
|
, libpng
|
|
|
|
, giflib
|
|
|
|
, libxml2
|
|
|
|
, libxslt
|
|
|
|
, libiconv
|
|
|
|
, libobjc
|
|
|
|
, libgcrypt
|
2020-04-24 23:36:52 +00:00
|
|
|
, icu
|
2024-04-21 15:54:59 +00:00
|
|
|
, pkg-config
|
|
|
|
, portaudio
|
2020-04-24 23:36:52 +00:00
|
|
|
, libiberty
|
|
|
|
}:
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-07-14 22:03:04 +00:00
|
|
|
pname = "gnustep-base";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.29.0";
|
2021-07-14 22:03:04 +00:00
|
|
|
src = fetchzip {
|
2024-04-21 15:54:59 +00:00
|
|
|
url = "ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-base-${finalAttrs.version}.tar.gz";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-4fjdsLBsYEDxLOFrq17dKii2sLKvOaFCu0cw3qQtM5U=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-12-28 21:21:41 +00:00
|
|
|
outputs = [ "out" "dev" "lib" ];
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = [ pkg-config make wrapGNUstepAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aspell audiofile
|
|
|
|
cups
|
|
|
|
gmp gnutls
|
|
|
|
libffi binutils-unwrapped
|
2022-06-16 17:23:12 +00:00
|
|
|
libjpeg libtiff libpng giflib
|
2020-04-24 23:36:52 +00:00
|
|
|
libxml2 libxslt libiconv
|
|
|
|
libobjc libgcrypt
|
|
|
|
icu
|
|
|
|
portaudio
|
|
|
|
libiberty
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
patches = [
|
|
|
|
./fixup-paths.patch
|
2022-01-07 04:07:37 +00:00
|
|
|
# https://github.com/gnustep/libs-base/issues/212 / https://www.sogo.nu/bugs/view.php?id=5416#c15585
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/gnustep/libs-base/commit/bd5f2909e6edc8012a0a6e44ea1402dfbe1353a4.patch";
|
|
|
|
revert = true;
|
|
|
|
sha256 = "02awigkbhqa60hfhqfh2wjsa960y3q6557qck1k2l231piz2xasa";
|
|
|
|
})
|
2023-08-04 22:07:22 +00:00
|
|
|
# https://github.com/gnustep/libs-base/issues/294
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/gnustep/libs-base/commit/37913d006d96a6bdcb963f4ca4889888dcce6094.patch";
|
|
|
|
sha256 = "PyOmzRIirSKG5SQY+UwD6moCidPb8PXCx3aFgfwxsXE=";
|
|
|
|
})
|
2024-01-02 11:29:13 +00:00
|
|
|
# https://github.com/gnustep/libs-base/pull/334
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/gnustep/libs-base/commit/b4feee311f2beaf499a5742967213f523de30f16.patch";
|
|
|
|
excludes = [ "ChangeLog" ];
|
|
|
|
hash = "sha256-r0qpxjpEM6y+F/gju6JhpDNxnFJNHFG/mt3NmC1hWrs=";
|
|
|
|
})
|
2021-03-09 03:18:52 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/gnustep/libs-base/releases/tag/base-${builtins.replaceStrings [ "." ] [ "_" ] finalAttrs.version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Implementation of AppKit and Foundation libraries of OPENSTEP and Cocoa";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://gnustep.github.io/";
|
|
|
|
license = lib.licenses.lgpl2Plus;
|
|
|
|
maintainers = with lib.maintainers; [ ashalkhakov matthewbauer dblsaiko ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-04-21 15:54:59 +00:00
|
|
|
})
|