From d4e880822a10301a6d3110c4b6cf66452aef2352 Mon Sep 17 00:00:00 2001 From: Emre Cebi Date: Thu, 19 Feb 2026 00:48:02 +0100 Subject: [PATCH] citron-emu: remove --- pkgs/by-name/ci/citron-emu/package.nix | 197 ------------------------- pkgs/top-level/aliases.nix | 1 + 2 files changed, 1 insertion(+), 197 deletions(-) delete mode 100644 pkgs/by-name/ci/citron-emu/package.nix diff --git a/pkgs/by-name/ci/citron-emu/package.nix b/pkgs/by-name/ci/citron-emu/package.nix deleted file mode 100644 index 0f10a33c5778..000000000000 --- a/pkgs/by-name/ci/citron-emu/package.nix +++ /dev/null @@ -1,197 +0,0 @@ -{ - lib, - stdenv, - SDL2, - boost, - catch2_3, - cmake, - ninja, - fetchFromGitea, - cpp-jwt, - cubeb, - gamemode, - discord-rpc, - enet, - fetchzip, - ffmpeg-headless, - fmt, - glslang, - openal, - libopus, - libusb1, - libva, - lz4, - python3, - wrapGAppsHook3, - nlohmann_json, - rapidjson, - openssl, - pkg-config, - qt6, - spirv-tools, - spirv-headers, - vulkan-utility-libraries, - vulkan-headers, - vulkan-loader, - simpleini, - zlib, - vulkan-memory-allocator, - zstd, - withDiscordPresence ? true, - withOptimisation ? false, -}: -let - nx_tzdbVersion = "221202"; - nx_tzdb = fetchzip { - url = "https://github.com/lat9nq/tzdb_to_nx/releases/download/${nx_tzdbVersion}/${nx_tzdbVersion}.zip"; - hash = "sha256-YOIElcKTiclem05trZsA3YJReozu/ex7jJAKD6nAMwc="; - stripRoot = false; - }; - inherit (qt6) - qtbase - qtmultimedia - qttools - qtwayland - qtwebengine - wrapQtAppsHook - ; -in -stdenv.mkDerivation (finalAttrs: { - pname = "citron-emu"; - version = "0.12.25"; - src = fetchFromGitea { - fetchSubmodules = true; - domain = "git.citron-emu.org"; - owner = "Citron"; - repo = "Emulator"; - tag = finalAttrs.version; - hash = "sha256-Su+SvCb6KDF9/ilb6Y/RZTOq/ffaMTWiJZy8nmGZ3n4="; - }; - - nativeBuildInputs = [ - cmake - ninja - glslang - pkg-config - python3 - qttools - wrapGAppsHook3 - wrapQtAppsHook - ]; - - buildInputs = [ - vulkan-headers - boost - catch2_3 - cpp-jwt - cubeb - enet - ffmpeg-headless - fmt - openal - libopus - libusb1 - libva - lz4 - nlohmann_json - rapidjson - openssl - qtbase - qtmultimedia - qtwayland - qtwebengine - gamemode - SDL2 - simpleini - spirv-tools - spirv-headers - vulkan-loader - vulkan-memory-allocator - vulkan-utility-libraries - zlib - zstd - ] - ++ lib.optionals withDiscordPresence [ - discord-rpc - ]; - - __structuredAttrs = true; - cmakeFlags = [ - (lib.cmakeFeature "CMAKE_POLICY_VERSION_MINIMUM" "3.5") - (lib.cmakeBool "CITRON_ENABLE_LTO" true) - (lib.cmakeBool "CITRON_TESTS" false) - (lib.cmakeBool "ENABLE_QT" true) - (lib.cmakeBool "USE_SYSTEM_QT" true) - (lib.cmakeBool "ENABLE_QT_TRANSLATION" true) - (lib.cmakeBool "CITRON_USE_EXTERNAL_SDL2" false) - (lib.cmakeBool "CITRON_USE_EXTERNAL_VULKAN_HEADERS" false) - (lib.cmakeBool "CITRON_USE_EXTERNAL_VULKAN_UTILITY_LIBRARIES" false) - (lib.cmakeBool "CITRON_USE_EXTERNAL_VULKAN_SPIRV_TOOLS" false) - (lib.cmakeBool "CITRON_DOWNLOAD_TIME_ZONE_DATA" false) - (lib.cmakeBool "CITRON_CHECK_SUBMODULES" false) - (lib.cmakeBool "CITRON_USE_QT_WEB_ENGINE" true) - (lib.cmakeBool "CITRON_USE_QT_MULTIMEDIA" true) - (lib.cmakeBool "USE_DISCORD_PRESENCE" withDiscordPresence) - (lib.cmakeBool "CITRON_ENABLE_COMPATIBILITY_REPORTING" false) - (lib.cmakeBool "CITRON_USE_AUTO_UPDATER" false) - (lib.cmakeFeature "TITLE_BAR_FORMAT_IDLE" "${finalAttrs.pname} | ${finalAttrs.version} (nixpkgs) {}") - (lib.cmakeFeature "TITLE_BAR_FORMAT_RUNNING" "${finalAttrs.pname} | ${finalAttrs.version} (nixpkgs) | {}") - ] - ++ lib.optionals withOptimisation [ - (lib.cmakeFeature "CMAKE_C_FLAGS" "-march=x86-64-v3") - (lib.cmakeFeature "CMAKE_CXX_FLAGS" "-march=x86-64-v3") - ]; - - env = { - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isx86_64 "-msse4.1"; - }; - - dontWrapGApps = true; - preFixup = '' - qtWrapperArgs+=("''${gappsWrapperArgs[@]}") - ''; - - preConfigure = '' - # provide pre-downloaded tz data - mkdir -p build/externals/nx_tzdb - ln -s ${nx_tzdb} build/externals/nx_tzdb/nx_tzdb - ''; - - postPatch = '' - # --- Qt 6.10: use GuiPrivate so qpa/qplatformnativeinterface.h is found --- - - # Add GuiPrivate to the Qt6 components - substituteInPlace CMakeLists.txt \ - --replace-fail "find_package(Qt6 REQUIRED COMPONENTS Widgets Multimedia Concurrent)" \ - "find_package(Qt6 REQUIRED COMPONENTS Widgets Multimedia Concurrent GuiPrivate)" - - # Link Qt6::GuiPrivate into the GUI target so its private headers are on the include path - substituteInPlace src/citron/CMakeLists.txt \ - --replace-fail "target_link_libraries(citron PRIVATE Boost::headers" \ - "target_link_libraries(citron PRIVATE Boost::headers Qt6::GuiPrivate" - ''; - - postInstall = '' - install -Dm444 $src/dist/72-citron-input.rules $out/lib/udev/rules.d/72-citron-input.rules - ''; - - passthru = { - inherit nx_tzdb; - }; - - meta = { - homepage = "https://citron-emu.org"; - changelog = "https://git.citron-emu.org/Citron/Emulator/releases/tag/${finalAttrs.version}"; - description = "Nintendo Switch emulator for PC"; - mainProgram = "citron"; - platforms = [ "x86_64-linux" ]; - license = with lib.licenses; [ - gpl3Plus - # Icons - asl20 - mit - cc0 - ]; - maintainers = with lib.maintainers; [ samemrecebi ]; - }; -}) diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 7e120ce0cd62..33ae39d63910 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -469,6 +469,7 @@ mapAliases { citrix_workspace_24_11_0 = throw "'citrix_workspace_24_11_0' has been removed because it depended on the removed webkitgtk_4_0."; # Added 2025-11-25 citrix_workspace_25_03_0 = throw "'citrix_workspace_25_03_0' has been removed because it depended on the removed webkitgtk_4_0."; # Added 2025-11-25 citrix_workspace_25_05_0 = throw "'citrix_workspace_25_05_0' has been removed because it depended on the removed webkitgtk_4_0."; # Added 2025-11-25 + citron-emu = throw "citron-emu was discontinued in february 2026"; # added 2026-02-19 clamsmtp = throw "'clamsmtp' has been removed as it is unmaintained and broken"; # Added 2025-05-17 clang12Stdenv = throw "clang12Stdenv has been removed, as it is unmaintained and obsolete"; # Added 2025-08-10 clang13Stdenv = throw "clang13Stdenv has been removed, as it is unmaintained and obsolete"; # Added 2025-08-10