about summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorThiago Kenji Okada <thiagokokada@gmail.com>2024-04-25 17:27:41 +0100
committerGitHub <noreply@github.com>2024-04-25 17:27:41 +0100
commit3a23d44ac8a2da7b3cfe6f99841ff27da787db11 (patch)
tree0405dd202eb3c11eebc2f61b35323f182ab48a5b /pkgs/applications
parente009f41e31624a48307131b0b6a8a1049e213407 (diff)
parentaebbcc12e40c3d27cc5d885c6e64463776468d29 (diff)
Merge pull request #306652 from atorres1985-contrib/snes9x
snes9x: 1.62.3 -> 1.62.3-unstable-2024-04-22
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/emulators/snes9x/default.nix128
1 files changed, 0 insertions, 128 deletions
diff --git a/pkgs/applications/emulators/snes9x/default.nix b/pkgs/applications/emulators/snes9x/default.nix
deleted file mode 100644
index 8f374b7e18183..0000000000000
--- a/pkgs/applications/emulators/snes9x/default.nix
+++ /dev/null
@@ -1,128 +0,0 @@
-{ lib
-, stdenv
-, alsa-lib
-, cmake
-, fetchFromGitHub
-, gtkmm3
-, libepoxy
-, libpng
-, libselinux
-, libX11
-, libXdmcp
-, libXext
-, libXinerama
-, libXrandr
-, libXv
-, minizip
-, ninja
-, pcre2
-, pkg-config
-, portaudio
-, pulseaudio
-, python3
-, SDL2
-, util-linuxMinimal
-, wrapGAppsHook
-, zlib
-, withGtk ? false
-}:
-
-stdenv.mkDerivation rec {
-  pname =
-    if withGtk then
-      "snes9x-gtk"
-    else
-      "snes9x";
-  version = "1.62.3";
-
-  src = fetchFromGitHub {
-    owner = "snes9xgit";
-    repo = "snes9x";
-    rev = version;
-    fetchSubmodules = true;
-    hash = "sha256-+KHpvz7nfwGXjzDAK/V+2JDRT1sa0kXDkg7XcRyvSP8=";
-  };
-
-  nativeBuildInputs = [
-    pkg-config
-    python3
-  ]
-  ++ lib.optionals withGtk [
-    cmake
-    ninja
-    wrapGAppsHook
-  ];
-
-  buildInputs = [
-    libX11
-    libXv
-    minizip
-    zlib
-  ]
-  # on non-Linux platforms this will build without sound support on X11 build
-  ++ lib.optionals stdenv.isLinux [
-    alsa-lib
-    pulseaudio
-  ]
-  ++ lib.optionals (!withGtk) [
-    libpng
-    libXext
-    libXinerama
-  ]
-  ++ lib.optionals withGtk [
-    gtkmm3
-    libepoxy
-    libselinux
-    libXdmcp
-    libXrandr
-    pcre2
-    portaudio
-    SDL2
-    util-linuxMinimal # provides libmount
-  ];
-
-  configureFlags =
-    lib.optional stdenv.hostPlatform.sse4_1Support "--enable-sse41"
-    ++ lib.optional stdenv.hostPlatform.avx2Support "--enable-avx2";
-
-  installPhase = lib.optionalString (!withGtk) ''
-    runHook preInstall
-
-    install -Dm755 snes9x -t "$out/bin/"
-    install -Dm644 snes9x.conf.default -t "$out/share/doc/${pname}/"
-    install -Dm644 ../docs/{control-inputs,controls,snapshots}.txt -t \
-      "$out/share/doc/${pname}/"
-
-    runHook postInstall
-  '';
-
-  preConfigure = if withGtk then "cd gtk" else "cd unix";
-
-  enableParallelBuilding = true;
-
-  meta = with lib;
-    let
-      interface = if withGtk then "GTK" else "X11";
-    in
-    {
-      homepage = "https://www.snes9x.com";
-      description = "Super Nintendo Entertainment System (SNES) emulator, ${interface} version";
-
-      longDescription = ''
-        Snes9x is a portable, freeware Super Nintendo Entertainment System (SNES)
-        emulator. It basically allows you to play most games designed for the SNES
-        and Super Famicom Nintendo game systems on your PC or Workstation; which
-        includes some real gems that were only ever released in Japan.
-
-        Version build with ${interface} interface.
-      '';
-
-      license = licenses.unfreeRedistributable // {
-        url = "https://github.com/snes9xgit/snes9x/blob/${version}/LICENSE";
-      };
-      maintainers = with maintainers; [ qknight thiagokokada ];
-      platforms = platforms.unix;
-      broken = (withGtk && stdenv.isDarwin);
-      mainProgram = "snes9x";
-    };
-}