diff --git a/pkgs/by-name/gn/gnustep-back/package.nix b/pkgs/by-name/gn/gnustep-back/package.nix new file mode 100644 index 000000000000..3ba7512c4b67 --- /dev/null +++ b/pkgs/by-name/gn/gnustep-back/package.nix @@ -0,0 +1,51 @@ +{ + lib, + clangStdenv, + fetchzip, + cairo, + fontconfig, + freetype, + gnustep-gui, + libXft, + libXmu, + pkg-config, + wrapGNUstepAppsHook, +}: + +clangStdenv.mkDerivation (finalAttrs: { + pname = "gnustep-back"; + version = "0.31.0"; + + src = fetchzip { + url = "ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-back-${finalAttrs.version}.tar.gz"; + sha256 = "sha256-CjcoXlKiPVPJMOdrBKjxiNauTZvLcId5Lb8DzbgBbBg="; + }; + + nativeBuildInputs = [ + pkg-config + wrapGNUstepAppsHook + ]; + + buildInputs = [ + cairo + fontconfig + freetype + libXft + libXmu + ]; + + propagatedBuildInputs = [ gnustep-gui ]; + + meta = { + description = "Generic backend for GNUstep"; + mainProgram = "gpbs"; + homepage = "https://gnustep.github.io/"; + license = lib.licenses.lgpl2Plus; + maintainers = with lib.maintainers; [ + ashalkhakov + dblsaiko + matthewbauer + ]; + platforms = lib.platforms.linux; + }; +}) diff --git a/pkgs/desktops/gnustep/base/fixup-paths.patch b/pkgs/by-name/gn/gnustep-base/fixup-paths.patch similarity index 100% rename from pkgs/desktops/gnustep/base/fixup-paths.patch rename to pkgs/by-name/gn/gnustep-base/fixup-paths.patch diff --git a/pkgs/desktops/gnustep/base/default.nix b/pkgs/by-name/gn/gnustep-base/package.nix similarity index 92% rename from pkgs/desktops/gnustep/base/default.nix rename to pkgs/by-name/gn/gnustep-base/package.nix index bab6487cc988..e46150706bf0 100644 --- a/pkgs/desktops/gnustep/base/default.nix +++ b/pkgs/by-name/gn/gnustep-base/package.nix @@ -1,70 +1,78 @@ { lib, - stdenv, + clangStdenv, + fetchpatch, + fetchzip, aspell, audiofile, - make, - wrapGNUstepAppsHook, - cups, - fetchzip, - fetchpatch, - gmp, - gnutls, - libffi, binutils-unwrapped, - libjpeg, - libtiff, - libpng, + cups, giflib, + gmp, + gnustep-libobjc, + gnustep-make, + gnutls, + icu, + libffi, + libgcrypt, + libiberty, + libiconv, + libjpeg, + libpng, + libtiff, libxml2, libxslt, - libiconv, - libobjc, - libgcrypt, - icu, pkg-config, portaudio, - libiberty, + wrapGNUstepAppsHook, }: -stdenv.mkDerivation (finalAttrs: { +clangStdenv.mkDerivation (finalAttrs: { pname = "gnustep-base"; version = "1.29.0"; + src = fetchzip { url = "ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-base-${finalAttrs.version}.tar.gz"; hash = "sha256-4fjdsLBsYEDxLOFrq17dKii2sLKvOaFCu0cw3qQtM5U="; }; + outputs = [ "out" "dev" "lib" ]; + nativeBuildInputs = [ pkg-config - make wrapGNUstepAppsHook ]; + + propagatedNativeBuildInputs = [ + gnustep-make + ]; + propagatedBuildInputs = [ aspell audiofile - cups - gmp - gnutls - libffi binutils-unwrapped - libjpeg - libtiff - libpng + cups giflib + gmp + gnustep-libobjc + gnutls + icu + libffi + libgcrypt + libiberty + libiconv + libjpeg + libpng + libtiff libxml2 libxslt - libiconv - libobjc - libgcrypt - icu portaudio - libiberty ]; + patches = [ ./fixup-paths.patch # https://github.com/gnustep/libs-base/issues/212 / https://www.sogo.nu/bugs/view.php?id=5416#c15585 @@ -95,8 +103,8 @@ stdenv.mkDerivation (finalAttrs: { license = lib.licenses.lgpl2Plus; maintainers = with lib.maintainers; [ ashalkhakov - matthewbauer dblsaiko + matthewbauer ]; platforms = lib.platforms.linux; }; diff --git a/pkgs/desktops/gnustep/gui/fixup-all.patch b/pkgs/by-name/gn/gnustep-gui/fixup-all.patch similarity index 100% rename from pkgs/desktops/gnustep/gui/fixup-all.patch rename to pkgs/by-name/gn/gnustep-gui/fixup-all.patch diff --git a/pkgs/desktops/gnustep/gui/default.nix b/pkgs/by-name/gn/gnustep-gui/package.nix similarity index 82% rename from pkgs/desktops/gnustep/gui/default.nix rename to pkgs/by-name/gn/gnustep-gui/package.nix index 34694caf310a..560daf72581f 100644 --- a/pkgs/desktops/gnustep/gui/default.nix +++ b/pkgs/by-name/gn/gnustep-gui/package.nix @@ -1,13 +1,12 @@ { lib, - stdenv, - make, - wrapGNUstepAppsHook, + clangStdenv, fetchzip, - base, + gnustep-base, + wrapGNUstepAppsHook, }: -stdenv.mkDerivation (finalAttrs: { +clangStdenv.mkDerivation (finalAttrs: { version = "0.31.1"; pname = "gnustep-gui"; @@ -16,15 +15,14 @@ stdenv.mkDerivation (finalAttrs: { sha256 = "sha256-+4XEJ6PKpantbIbyNroFMaNBTFffkuW/ajSocGQO9Mo="; }; - nativeBuildInputs = [ - make - wrapGNUstepAppsHook - ]; - buildInputs = [ base ]; + nativeBuildInputs = [ wrapGNUstepAppsHook ]; + + propagatedBuildInputs = [ gnustep-base ]; patches = [ ./fixup-all.patch ]; + meta = { changelog = "https://github.com/gnustep/libs-gui/releases/tag/gui-${ builtins.replaceStrings [ "." ] [ "_" ] finalAttrs.version @@ -34,8 +32,8 @@ stdenv.mkDerivation (finalAttrs: { license = lib.licenses.lgpl2Plus; maintainers = with lib.maintainers; [ ashalkhakov - matthewbauer dblsaiko + matthewbauer ]; platforms = lib.platforms.linux; }; diff --git a/pkgs/desktops/gnustep/libobjc2/default.nix b/pkgs/by-name/gn/gnustep-libobjc/package.nix similarity index 83% rename from pkgs/desktops/gnustep/libobjc2/default.nix rename to pkgs/by-name/gn/gnustep-libobjc/package.nix index 06e0b45095c0..330e31bf7bb6 100644 --- a/pkgs/desktops/gnustep/libobjc2/default.nix +++ b/pkgs/by-name/gn/gnustep-libobjc/package.nix @@ -1,13 +1,13 @@ { lib, - stdenv, + clangStdenv, fetchFromGitHub, cmake, robin-map, }: -stdenv.mkDerivation (finalAttrs: { - pname = "libobjc2"; +clangStdenv.mkDerivation (finalAttrs: { + pname = "gnustep-libobjc"; version = "2.2.1"; src = fetchFromGitHub { @@ -19,19 +19,20 @@ stdenv.mkDerivation (finalAttrs: { }; nativeBuildInputs = [ cmake ]; + buildInputs = [ robin-map ]; cmakeFlags = [ "-DCMAKE_INSTALL_LIBDIR=lib" ]; meta = with lib; { - broken = stdenv.hostPlatform.isDarwin; + broken = clangStdenv.hostPlatform.isDarwin; description = "Objective-C runtime for use with GNUstep"; homepage = "https://gnustep.github.io/"; license = licenses.mit; maintainers = with lib.maintainers; [ ashalkhakov - matthewbauer dblsaiko + matthewbauer ]; platforms = platforms.unix; }; diff --git a/pkgs/desktops/gnustep/make/GNUstep.conf b/pkgs/by-name/gn/gnustep-make/GNUstep.conf similarity index 100% rename from pkgs/desktops/gnustep/make/GNUstep.conf rename to pkgs/by-name/gn/gnustep-make/GNUstep.conf diff --git a/pkgs/desktops/gnustep/make/fixup-paths.patch b/pkgs/by-name/gn/gnustep-make/fixup-paths.patch similarity index 100% rename from pkgs/desktops/gnustep/make/fixup-paths.patch rename to pkgs/by-name/gn/gnustep-make/fixup-paths.patch diff --git a/pkgs/desktops/gnustep/make/default.nix b/pkgs/by-name/gn/gnustep-make/package.nix similarity index 81% rename from pkgs/desktops/gnustep/make/default.nix rename to pkgs/by-name/gn/gnustep-make/package.nix index d29cc55c56a5..66fe1c42b1b3 100644 --- a/pkgs/desktops/gnustep/make/default.nix +++ b/pkgs/by-name/gn/gnustep-make/package.nix @@ -1,12 +1,12 @@ { lib, - stdenv, + clangStdenv, fetchurl, + gnustep-libobjc, which, - libobjc, }: -stdenv.mkDerivation (finalAttrs: { +clangStdenv.mkDerivation (finalAttrs: { pname = "gnustep-make"; version = "2.9.2"; @@ -18,14 +18,17 @@ stdenv.mkDerivation (finalAttrs: { configureFlags = [ "--with-layout=fhs-system" "--disable-install-p" - "--with-config-file=${placeholder "out"}/etc/GNUstep/GNUstep.conf" ]; + preConfigure = '' + configureFlags="$configureFlags --with-config-file=$out/etc/GNUstep/GNUstep.conf" + ''; + makeFlags = [ "GNUSTEP_INSTALLATION_DOMAIN=SYSTEM" ]; - buildInputs = [ libobjc ]; + buildInputs = [ gnustep-libobjc ]; propagatedBuildInputs = [ which ]; @@ -41,8 +44,8 @@ stdenv.mkDerivation (finalAttrs: { license = lib.licenses.lgpl2Plus; maintainers = with lib.maintainers; [ ashalkhakov - matthewbauer dblsaiko + matthewbauer ]; platforms = lib.platforms.unix; }; diff --git a/pkgs/desktops/gnustep/make/setup-hook.sh b/pkgs/by-name/gn/gnustep-make/setup-hook.sh similarity index 100% rename from pkgs/desktops/gnustep/make/setup-hook.sh rename to pkgs/by-name/gn/gnustep-make/setup-hook.sh diff --git a/pkgs/desktops/gnustep/systempreferences/default.nix b/pkgs/by-name/gn/gnustep-systempreferences/package.nix similarity index 78% rename from pkgs/desktops/gnustep/systempreferences/default.nix rename to pkgs/by-name/gn/gnustep-systempreferences/package.nix index d9262af36191..55341d4f8ab2 100644 --- a/pkgs/desktops/gnustep/systempreferences/default.nix +++ b/pkgs/by-name/gn/gnustep-systempreferences/package.nix @@ -1,15 +1,12 @@ { lib, - stdenv, + clangStdenv, fetchurl, - make, + gnustep-back, wrapGNUstepAppsHook, - back, - base, - gui, }: -stdenv.mkDerivation (finalAttrs: { +clangStdenv.mkDerivation (finalAttrs: { pname = "system-preferences"; version = "1.2.0"; @@ -18,15 +15,9 @@ stdenv.mkDerivation (finalAttrs: { sha256 = "1fg7c3ihfgvl6n21rd17fs9ivx3l8ps874m80vz86n1callgs339"; }; - nativeBuildInputs = [ - make - wrapGNUstepAppsHook - ]; - buildInputs = [ - back - base - gui - ]; + nativeBuildInputs = [ wrapGNUstepAppsHook ]; + + buildInputs = [ gnustep-back ]; meta = { description = "Settings manager for the GNUstep environment and its applications"; @@ -35,8 +26,8 @@ stdenv.mkDerivation (finalAttrs: { mainProgram = "SystemPreferences"; maintainers = with lib.maintainers; [ ashalkhakov - matthewbauer dblsaiko + matthewbauer ]; platforms = lib.platforms.linux; }; diff --git a/pkgs/desktops/gnustep/gorm/default.nix b/pkgs/by-name/go/gorm/package.nix similarity index 77% rename from pkgs/desktops/gnustep/gorm/default.nix rename to pkgs/by-name/go/gorm/package.nix index 59c9c729f8be..1e883cebca0e 100644 --- a/pkgs/desktops/gnustep/gorm/default.nix +++ b/pkgs/by-name/go/gorm/package.nix @@ -1,15 +1,12 @@ { lib, - stdenv, + clangStdenv, fetchzip, - base, - back, - make, + gnustep-back, wrapGNUstepAppsHook, - gui, }: -stdenv.mkDerivation (finalAttrs: { +clangStdenv.mkDerivation (finalAttrs: { pname = "gorm"; version = "1.4.0"; @@ -18,15 +15,9 @@ stdenv.mkDerivation (finalAttrs: { sha256 = "sha256-B7NNRA3qA2PFbb03m58EBBONuIciLf6eU+YSR0qvaCo="; }; - nativeBuildInputs = [ - make - wrapGNUstepAppsHook - ]; - buildInputs = [ - base - back - gui - ]; + nativeBuildInputs = [ wrapGNUstepAppsHook ]; + + buildInputs = [ gnustep-back ]; meta = { description = "Graphical Object Relationship Modeller is an easy-to-use interface designer for GNUstep"; @@ -35,8 +26,8 @@ stdenv.mkDerivation (finalAttrs: { mainProgram = "Gorm"; maintainers = with lib.maintainers; [ ashalkhakov - matthewbauer dblsaiko + matthewbauer ]; platforms = lib.platforms.linux; }; diff --git a/pkgs/desktops/gnustep/gworkspace/default.nix b/pkgs/by-name/gw/gworkspace/package.nix similarity index 79% rename from pkgs/desktops/gnustep/gworkspace/default.nix rename to pkgs/by-name/gw/gworkspace/package.nix index 92f60105d1c8..0f12f00838b6 100644 --- a/pkgs/desktops/gnustep/gworkspace/default.nix +++ b/pkgs/by-name/gw/gworkspace/package.nix @@ -1,16 +1,13 @@ { lib, - stdenv, - back, - base, - gui, - make, - wrapGNUstepAppsHook, + clangStdenv, fetchurl, - system_preferences, + gnustep-back, + gnustep-systempreferences, + wrapGNUstepAppsHook, }: -stdenv.mkDerivation (finalAttrs: { +clangStdenv.mkDerivation (finalAttrs: { pname = "gworkspace"; version = "1.0.0"; @@ -22,16 +19,13 @@ stdenv.mkDerivation (finalAttrs: { # additional dependencies: # - PDFKit framework from http://gap.nongnu.org/ # - TODO: to --enable-gwmetadata, need libDBKit as well as sqlite! - nativeBuildInputs = [ - make - wrapGNUstepAppsHook - ]; + nativeBuildInputs = [ wrapGNUstepAppsHook ]; + buildInputs = [ - back - base - gui - system_preferences + gnustep-back + gnustep-systempreferences ]; + configureFlags = [ "--with-inotify" ]; meta = { @@ -41,8 +35,8 @@ stdenv.mkDerivation (finalAttrs: { mainProgram = "GWorkspace"; maintainers = with lib.maintainers; [ ashalkhakov - matthewbauer dblsaiko + matthewbauer ]; platforms = lib.platforms.linux; }; diff --git a/pkgs/by-name/ow/owl-compositor/package.nix b/pkgs/by-name/ow/owl-compositor/package.nix index 15ba9de7d753..320eccc35680 100644 --- a/pkgs/by-name/ow/owl-compositor/package.nix +++ b/pkgs/by-name/ow/owl-compositor/package.nix @@ -1,7 +1,8 @@ { lib , clangStdenv , fetchFromGitHub -, gnustep +, gnustep-back +, wrapGNUstepAppsHook , libxkbcommon , makeWrapper , wayland @@ -41,8 +42,7 @@ stdenv.mkDerivation { darwin.DarwinTools darwin.bootstrap_cmds ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ - gnustep.make - gnustep.wrapGNUstepAppsHook + wrapGNUstepAppsHook ]; buildInputs = [ @@ -51,9 +51,7 @@ stdenv.mkDerivation { ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ - gnustep.back - gnustep.base - gnustep.gui + gnustep-back ]; preConfigure = '' diff --git a/pkgs/by-name/pi/pikopixel/package.nix b/pkgs/by-name/pi/pikopixel/package.nix index c65353143368..f2b00cb90fca 100644 --- a/pkgs/by-name/pi/pikopixel/package.nix +++ b/pkgs/by-name/pi/pikopixel/package.nix @@ -1,7 +1,8 @@ { lib , clangStdenv , fetchurl -, gnustep +, gnustep-back +, wrapGNUstepAppsHook }: clangStdenv.mkDerivation rec { @@ -16,14 +17,11 @@ clangStdenv.mkDerivation rec { sourceRoot = "PikoPixel.Sources.${version}/PikoPixel"; nativeBuildInputs = [ - gnustep.make - gnustep.wrapGNUstepAppsHook + wrapGNUstepAppsHook ]; buildInputs = [ - gnustep.base - gnustep.gui - gnustep.back + gnustep-back ]; # Fix the Exec and Icon paths in the .desktop file, and save the file in the diff --git a/pkgs/desktops/gnustep/projectcenter/default.nix b/pkgs/by-name/pr/projectcenter/package.nix similarity index 85% rename from pkgs/desktops/gnustep/projectcenter/default.nix rename to pkgs/by-name/pr/projectcenter/package.nix index b93b5f073b6a..b4b54d6b1d44 100644 --- a/pkgs/desktops/gnustep/projectcenter/default.nix +++ b/pkgs/by-name/pr/projectcenter/package.nix @@ -1,18 +1,15 @@ { lib, - stdenv, + clangStdenv, fetchFromGitHub, - make, - wrapGNUstepAppsHook, - base, - back, - gui, - gorm, - gnumake, gdb, + gnumake, + gnustep-back, + gorm, + wrapGNUstepAppsHook, }: -stdenv.mkDerivation (finalAttrs: { +clangStdenv.mkDerivation (finalAttrs: { pname = "projectcenter"; version = "0.7.0"; @@ -23,20 +20,15 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-uXT2UUvMZNc6Fqi2BUXQimbZk8b3IqXzB+A2btBOmms="; }; - nativeBuildInputs = [ - make - wrapGNUstepAppsHook - ]; + nativeBuildInputs = [ wrapGNUstepAppsHook ]; # NOTE: need a patch for ProjectCenter to help it locate some necessary tools: # 1. Framework/PCProjectLauncher.m, locate gdb (say among NIX_GNUSTEP_SYSTEM_TOOLS) # 2. Framework/PCProjectBuilder.m, locate gmake (similar) propagatedBuildInputs = [ - base - back - gui - gnumake gdb + gnumake + gnustep-back gorm ]; @@ -47,8 +39,8 @@ stdenv.mkDerivation (finalAttrs: { mainProgram = "ProjectCenter"; maintainers = with lib.maintainers; [ ashalkhakov - matthewbauer dblsaiko + matthewbauer ]; platforms = lib.platforms.linux; }; diff --git a/pkgs/by-name/so/sogo/package.nix b/pkgs/by-name/so/sogo/package.nix index 4cd51f1307a0..d4d663c5e9ba 100644 --- a/pkgs/by-name/so/sogo/package.nix +++ b/pkgs/by-name/so/sogo/package.nix @@ -1,9 +1,12 @@ -{ gnustep, lib, fetchFromGitHub, makeWrapper, python3, lndir, libxcrypt +{ lib, clangStdenv, fetchFromGitHub, makeWrapper, python3, lndir, libxcrypt , openssl, openldap, sope, libmemcached, curl, libsodium, libytnef, libzip, pkg-config, nixosTests , oath-toolkit +, gnustep-make +, gnustep-base , enableActiveSync ? false , libwbxml }: -gnustep.stdenv.mkDerivation rec { + +clangStdenv.mkDerivation rec { pname = "sogo"; version = "5.11.2"; @@ -15,8 +18,8 @@ gnustep.stdenv.mkDerivation rec { hash = "sha256-c+547x7ugYoLMgGVLcMmmb9rzquRJOv8n+Js2CuE7I0="; }; - nativeBuildInputs = [ gnustep.make makeWrapper python3 pkg-config ]; - buildInputs = [ gnustep.base sope openssl libmemcached curl libsodium libytnef libzip openldap oath-toolkit libxcrypt ] + nativeBuildInputs = [ makeWrapper python3 pkg-config ]; + buildInputs = [ gnustep-base sope openssl libmemcached curl libsodium libytnef libzip openldap oath-toolkit libxcrypt ] ++ lib.optional enableActiveSync libwbxml; patches = lib.optional enableActiveSync ./enable-activesync.patch; @@ -33,7 +36,7 @@ gnustep.stdenv.mkDerivation rec { # Move all GNUStep makefiles to a common directory mkdir -p makefiles - cp -r {${gnustep.make},${sope}}/share/GNUstep/Makefiles/* makefiles + cp -r {${gnustep-make},${sope}}/share/GNUstep/Makefiles/* makefiles # Modify the search path for GNUStep makefiles find . -type f -name GNUmakefile -exec sed -i "s:\\$.GNUSTEP_MAKEFILES.:$PWD/makefiles:g" {} + @@ -50,11 +53,11 @@ gnustep.stdenv.mkDerivation rec { preFixup = '' # Create gnustep.conf mkdir -p $out/share/GNUstep - cp ${gnustep.make}/etc/GNUstep/GNUstep.conf $out/share/GNUstep/ - sed -i "s:${gnustep.make}:$out:g" $out/share/GNUstep/GNUstep.conf + cp ${gnustep-make}/etc/GNUstep/GNUstep.conf $out/share/GNUstep/ + sed -i "s:${gnustep-make}:$out:g" $out/share/GNUstep/GNUstep.conf # Link in GNUstep base - ${lndir}/bin/lndir ${lib.getLib gnustep.base}/lib/GNUstep/ $out/lib/GNUstep/ + ${lndir}/bin/lndir ${lib.getLib gnustep-base}/lib/GNUstep/ $out/lib/GNUstep/ # Link in sope ${lndir}/bin/lndir ${sope}/ $out/ @@ -80,4 +83,3 @@ gnustep.stdenv.mkDerivation rec { maintainers = with maintainers; [ jceb ]; }; } - diff --git a/pkgs/by-name/so/sope/package.nix b/pkgs/by-name/so/sope/package.nix index 67fcb756e9bc..a6391e279f24 100644 --- a/pkgs/by-name/so/sope/package.nix +++ b/pkgs/by-name/so/sope/package.nix @@ -1,7 +1,10 @@ -{ gnustep, lib, fetchFromGitHub, fetchpatch, libxml2, openssl -, openldap, mariadb, libmysqlclient, postgresql }: +{ lib, clangStdenv, fetchFromGitHub, fetchpatch, libxml2, openssl +, openldap, mariadb, libmysqlclient, postgresql +, gnustep-make +, gnustep-base +}: -gnustep.stdenv.mkDerivation rec { +clangStdenv.mkDerivation rec { pname = "sope"; version = "5.11.2"; @@ -12,8 +15,7 @@ gnustep.stdenv.mkDerivation rec { hash = "sha256-6vec2ZgpK5jcKr3c2SLn6fLAun56MDjupWtR6dMdjag="; }; - nativeBuildInputs = [ gnustep.make ]; - buildInputs = [ gnustep.base libxml2 openssl ] + buildInputs = [ gnustep-base libxml2 openssl ] ++ lib.optional (openldap != null) openldap ++ lib.optionals (mariadb != null) [ libmysqlclient mariadb ] ++ lib.optional (postgresql != null) postgresql; @@ -24,7 +26,7 @@ gnustep.stdenv.mkDerivation rec { # installed to in the install phase. We move them over after the installation. preConfigure = '' mkdir -p /build/Makefiles - ln -s ${gnustep.make}/share/GNUstep/Makefiles/* /build/Makefiles + ln -s ${gnustep-make}/share/GNUstep/Makefiles/* /build/Makefiles cat < /build/GNUstep.conf GNUSTEP_MAKEFILES=/build/Makefiles EOF diff --git a/pkgs/by-name/wr/wrapGNUstepAppsHook/package.nix b/pkgs/by-name/wr/wrapGNUstepAppsHook/package.nix new file mode 100644 index 000000000000..1485f8a8ae1b --- /dev/null +++ b/pkgs/by-name/wr/wrapGNUstepAppsHook/package.nix @@ -0,0 +1,9 @@ +{ + makeBinaryWrapper, + makeSetupHook, +}: + +makeSetupHook { + name = "wrapGNUstepAppsHook"; + propagatedBuildInputs = [ makeBinaryWrapper ]; +} ./wrapGNUstepAppsHook.sh diff --git a/pkgs/desktops/gnustep/wrapGNUstepAppsHook.sh b/pkgs/by-name/wr/wrapGNUstepAppsHook/wrapGNUstepAppsHook.sh similarity index 100% rename from pkgs/desktops/gnustep/wrapGNUstepAppsHook.sh rename to pkgs/by-name/wr/wrapGNUstepAppsHook/wrapGNUstepAppsHook.sh diff --git a/pkgs/desktops/gnustep/back/default.nix b/pkgs/desktops/gnustep/back/default.nix deleted file mode 100644 index e4ec5d03010a..000000000000 --- a/pkgs/desktops/gnustep/back/default.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ lib -, stdenv -, make -, wrapGNUstepAppsHook -, cairo -, fetchzip -, base -, gui -, fontconfig -, freetype -, pkg-config -, libXft -, libXmu -}: - -stdenv.mkDerivation (finalAttrs: { - pname = "gnustep-back"; - version = "0.31.0"; - - src = fetchzip { - url = "ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-back-${finalAttrs.version}.tar.gz"; - sha256 = "sha256-CjcoXlKiPVPJMOdrBKjxiNauTZvLcId5Lb8DzbgBbBg="; - }; - - nativeBuildInputs = [ make pkg-config wrapGNUstepAppsHook ]; - buildInputs = [ cairo base gui fontconfig freetype libXft libXmu ]; - - meta = { - description = "Generic backend for GNUstep"; - mainProgram = "gpbs"; - homepage = "https://gnustep.github.io/"; - license = lib.licenses.lgpl2Plus; - maintainers = with lib.maintainers; [ ashalkhakov matthewbauer dblsaiko ]; - platforms = lib.platforms.linux; - }; -}) diff --git a/pkgs/desktops/gnustep/default.nix b/pkgs/desktops/gnustep/default.nix deleted file mode 100644 index 53040ace672d..000000000000 --- a/pkgs/desktops/gnustep/default.nix +++ /dev/null @@ -1,26 +0,0 @@ -{ newScope -, llvmPackages -}: - -let - callPackage = newScope self; - - self = { - stdenv = llvmPackages.stdenv; - - wrapGNUstepAppsHook = callPackage ./wrapGNUstepAppsHook.nix {}; - - make = callPackage ./make {}; - - libobjc = callPackage ./libobjc2 {}; - base = callPackage ./base {}; - back = callPackage ./back {}; - gui = callPackage ./gui {}; - - gorm = callPackage ./gorm {}; - projectcenter = callPackage ./projectcenter {}; - system_preferences = callPackage ./systempreferences {}; - gworkspace = callPackage ./gworkspace {}; - }; - -in self diff --git a/pkgs/desktops/gnustep/wrapGNUstepAppsHook.nix b/pkgs/desktops/gnustep/wrapGNUstepAppsHook.nix deleted file mode 100644 index 8a2339ddeb52..000000000000 --- a/pkgs/desktops/gnustep/wrapGNUstepAppsHook.nix +++ /dev/null @@ -1,8 +0,0 @@ -{makeBinaryWrapper, makeSetupHook}: - -makeSetupHook - { - name = "wrapGNUstepAppsHook"; - propagatedBuildInputs = [makeBinaryWrapper]; - } - ./wrapGNUstepAppsHook.sh diff --git a/pkgs/development/tools/analysis/hopper/default.nix b/pkgs/development/tools/analysis/hopper/default.nix index a3ceed9c43e0..6ea31a57c9e2 100644 --- a/pkgs/development/tools/analysis/hopper/default.nix +++ b/pkgs/development/tools/analysis/hopper/default.nix @@ -3,7 +3,7 @@ , lib , autoPatchelfHook , wrapQtAppsHook -, gnustep +, gnustep-libobjc , libbsd , libffi_3_3 , ncurses6 @@ -27,7 +27,7 @@ stdenv.mkDerivation rec { ]; buildInputs = [ - gnustep.libobjc + gnustep-libobjc libbsd libffi_3_3 ncurses6 diff --git a/pkgs/tools/archivers/unar/default.nix b/pkgs/tools/archivers/unar/default.nix index 445683555dc7..2f15a6abd764 100644 --- a/pkgs/tools/archivers/unar/default.nix +++ b/pkgs/tools/archivers/unar/default.nix @@ -2,7 +2,7 @@ , stdenv , fetchFromGitHub , installShellFiles -, gnustep +, gnustep-base , bzip2 , zlib , icu @@ -54,11 +54,10 @@ stdenv.mkDerivation rec { ''); buildInputs = [ bzip2 icu openssl wavpack zlib ] ++ - lib.optionals stdenv.hostPlatform.isLinux [ gnustep.base ] ++ + lib.optionals stdenv.hostPlatform.isLinux [ gnustep-base ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Foundation AppKit ]; nativeBuildInputs = [ installShellFiles ] ++ - lib.optionals stdenv.hostPlatform.isLinux [ gnustep.make ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ xcbuildHook ]; xcbuildFlags = lib.optionals stdenv.hostPlatform.isDarwin [ diff --git a/pkgs/tools/networking/openvpn/openvpn-auth-ldap.nix b/pkgs/tools/networking/openvpn/openvpn-auth-ldap.nix index 385281b010ab..e046e861e8ef 100644 --- a/pkgs/tools/networking/openvpn/openvpn-auth-ldap.nix +++ b/pkgs/tools/networking/openvpn/openvpn-auth-ldap.nix @@ -4,7 +4,7 @@ fetchFromGitHub, fetchpatch2, autoreconfHook, - gnustep, + gnustep-base, re2c, openldap, openssl, @@ -40,9 +40,6 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ autoreconfHook - gnustep.base - gnustep.libobjc - gnustep.make re2c ]; @@ -50,6 +47,7 @@ stdenv.mkDerivation rec { openldap openssl openvpn + gnustep-base ]; configureFlags = [ diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 11d7f835fc6f..ce6e73591f61 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -527,6 +527,7 @@ mapAliases { gnuradio3_8 = throw "gnuradio3_8 has been removed because it was too old and incompatible with a not EOL swig"; # Added 2024-11-18 gnuradio3_8Minimal = throw "gnuradio3_8Minimal has been removed because it was too old and incompatible with a not EOL swig"; # Added 2024-11-18 gnuradio3_8Packages = throw "gnuradio3_8Minimal has been removed because it was too old and incompatible with a not EOL swig"; # Added 2024-11-18 + gnustep = throw "The gnustep scope has been replaced with top-level packages: gnustep-back, -base, -gui, -libobjc, -make, -systempreferences; gorm, gworkspace, projectcenter."; # Added 2025-01-25 gn1924 = throw "gn1924 has been removed because it was broken and no longer used by envoy."; # Added 2024-11-03 gobby5 = throw "'gobby5' has been renamed to/replaced by 'gobby'"; # Converted to throw 2024-10-17 gradle_6 = throw "Gradle 6 has been removed, as it is end-of-life (https://endoflife.date/gradle) and has many vulnerabilities that are not resolved until Gradle 7."; # Added 2024-10-30 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7cb482bc375f..1e421a82afd7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16784,9 +16784,6 @@ with pkgs; gnome-session-ctl = callPackage ../by-name/gn/gnome-session/ctl.nix { }; - # Using 43 to match Mutter used in Pantheon - gnustep = recurseIntoAttrs (callPackage ../desktops/gnustep { }); - lomiri = recurseIntoAttrs (callPackage ../desktops/lomiri { }); lumina = recurseIntoAttrs (callPackage ../desktops/lumina { });