nixpkgs/pkgs/applications/emulators/desmume/default.nix
Jan Tojnar eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00

96 lines
1.9 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, SDL2
, agg
, alsa-lib
, desktop-file-utils
, wrapGAppsHook3
, gtk3
, intltool
, libGLU
, libXmu
, libpcap
, libtool
, lua
, meson
, ninja
, openal
, pkg-config
, soundtouch
, tinyxml
, zlib
}:
stdenv.mkDerivation (finalAttrs: {
pname = "desmume";
version = "0.9.13";
src = fetchFromGitHub {
owner = "TASVideos";
repo = "desmume";
rev = "release_${lib.replaceStrings ["."] ["_"] finalAttrs.version}";
hash = "sha256-vmjKXa/iXLTwtqnG+ZUvOnOQPZROeMpfM5J3Jh/Ynfo=";
};
patches = [
# Fix compiling on GCC for AArch64
(fetchpatch {
url = "https://github.com/TASEmulators/desmume/commit/24eb5ed95c6cbdaba8b3c63a99e95e899e8a5061.patch";
hash = "sha256-J3ZRU1tPTl+4/jg0DBo6ro6DTUZkpQCey+QGF2EugCQ=";
})
];
nativeBuildInputs = [
wrapGAppsHook3
desktop-file-utils
intltool
libtool
lua
meson
ninja
pkg-config
];
buildInputs = [
SDL2
agg
alsa-lib
gtk3
libGLU
libXmu
libpcap
openal
soundtouch
tinyxml
zlib
];
hardeningDisable = [ "format" ];
preConfigure = ''
cd desmume/src/frontend/posix
'';
mesonFlags = [
"-Db_pie=true"
"-Dopenal=true"
"-Dwifi=true"
];
meta = with lib; {
homepage = "https://www.github.com/TASVideos/desmume/";
description = "An open-source Nintendo DS emulator";
longDescription = ''
DeSmuME is a freeware emulator for the NDS roms & Nintendo DS Lite games
created by YopYop156 and now maintained by the TASvideos team. It supports
many homebrew nds rom demoes as well as a handful of Wireless Multiboot
demo nds roms. DeSmuME is also able to emulate nearly all of the
commercial nds rom titles which other DS Emulators aren't.
'';
license = licenses.gpl2Plus;
maintainers = [ maintainers.AndersonTorres ];
platforms = platforms.unix;
};
})