nixpkgs/pkgs/applications/emulators/desmume/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

95 lines
1.8 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
2022-11-28 23:03:05 +00:00
, fetchpatch
, SDL2
, agg
, alsa-lib
, desktop-file-utils
, gtk3
, intltool
, libGLU
2015-09-12 21:21:45 +00:00
, libXmu
, libpcap
, libtool
2015-09-12 21:21:45 +00:00
, lua
, meson
, ninja
, openal
, pkg-config
, soundtouch
, tinyxml
, zlib
}:
2015-09-12 21:21:45 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "desmume";
version = "0.9.13";
2015-09-12 21:21:45 +00:00
src = fetchFromGitHub {
owner = "TASVideos";
repo = "desmume";
rev = "release_${lib.replaceStrings ["."] ["_"] finalAttrs.version}";
hash = "sha256-vmjKXa/iXLTwtqnG+ZUvOnOQPZROeMpfM5J3Jh/Ynfo=";
2015-09-12 21:21:45 +00:00
};
2022-11-28 23:03:05 +00:00
patches = [
# Fix compiling on GCC for AArch64
(fetchpatch {
url = "https://github.com/TASEmulators/desmume/commit/24eb5ed95c6cbdaba8b3c63a99e95e899e8a5061.patch";
hash = "sha256-J3ZRU1tPTl+4/jg0DBo6ro6DTUZkpQCey+QGF2EugCQ=";
})
];
nativeBuildInputs = [
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
'';
2015-09-12 21:21:45 +00:00
mesonFlags = [
"-Db_pie=true"
"-Dopenal=true"
"-Dwifi=true"
];
2015-09-12 21:21:45 +00:00
meta = with lib; {
2021-09-29 21:39:17 +00:00
homepage = "https://www.github.com/TASVideos/desmume/";
2015-09-12 21:21:45 +00:00
description = "An open-source Nintendo DS emulator";
longDescription = ''
2021-09-29 21:39:17 +00:00
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
2015-09-12 21:21:45 +00:00
commercial nds rom titles which other DS Emulators aren't.
'';
license = licenses.gpl2Plus;
2015-09-12 21:21:45 +00:00
maintainers = [ maintainers.AndersonTorres ];
platforms = platforms.unix;
2015-09-12 21:21:45 +00:00
};
})