2024-01-24 20:33:38 +00:00
|
|
|
{ lib
|
|
|
|
, SDL2
|
|
|
|
, alsa-lib
|
|
|
|
, autoconf-archive
|
|
|
|
, autoreconfHook
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fltk
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, libao
|
|
|
|
, libarchive
|
|
|
|
, libepoxy
|
|
|
|
, makeWrapper
|
|
|
|
, pkg-config
|
|
|
|
, stdenv
|
|
|
|
, unzip
|
2024-04-26 20:24:03 +00:00
|
|
|
, wrapGAppsHook3
|
2024-01-24 20:33:38 +00:00
|
|
|
, xdg-utils
|
2017-09-03 12:22:39 +00:00
|
|
|
}:
|
2014-12-23 10:30:22 +00:00
|
|
|
|
2024-01-24 20:33:38 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "nestopia";
|
2024-03-30 02:30:27 +00:00
|
|
|
version = "1.52.1";
|
2017-09-03 12:22:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-01-24 20:33:38 +00:00
|
|
|
owner = "0ldsk00l";
|
2017-09-03 12:22:39 +00:00
|
|
|
repo = "nestopia";
|
2024-01-24 20:33:38 +00:00
|
|
|
rev = finalAttrs.version;
|
2024-03-30 02:30:27 +00:00
|
|
|
hash = "sha256-r8Z0Ejf5vWcdvxkUkUKJtipQIRoiwoRj0Bx06Gnxd08=";
|
2014-12-23 10:30:22 +00:00
|
|
|
};
|
|
|
|
|
2017-09-03 12:22:39 +00:00
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
2021-06-10 02:57:09 +00:00
|
|
|
alsa-lib
|
2024-01-24 20:33:38 +00:00
|
|
|
fltk
|
2021-11-11 04:35:34 +00:00
|
|
|
libepoxy
|
2024-01-24 20:33:38 +00:00
|
|
|
|
|
|
|
libGLU
|
|
|
|
libGL
|
2017-09-03 12:22:39 +00:00
|
|
|
libarchive
|
|
|
|
libao
|
2021-02-01 08:05:09 +00:00
|
|
|
xdg-utils
|
2017-09-03 15:38:19 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-01-24 20:33:38 +00:00
|
|
|
SDL2
|
|
|
|
autoconf-archive
|
|
|
|
autoreconfHook
|
|
|
|
fltk
|
2021-01-17 02:30:45 +00:00
|
|
|
pkg-config
|
2017-09-03 15:38:19 +00:00
|
|
|
makeWrapper
|
2024-04-26 20:24:03 +00:00
|
|
|
wrapGAppsHook3
|
2021-02-20 21:01:53 +00:00
|
|
|
unzip
|
2017-09-03 12:22:39 +00:00
|
|
|
];
|
2014-12-23 10:30:22 +00:00
|
|
|
|
2024-01-24 20:33:38 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
preInstall = ''
|
2014-12-23 10:30:22 +00:00
|
|
|
mkdir -p $out/{bin,share/nestopia}
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
for f in $out/bin/*; do
|
|
|
|
wrapProgram $f \
|
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:$out/share"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://0ldsk00l.ca/nestopia/";
|
2024-01-24 20:33:38 +00:00
|
|
|
description = "Cross-platform Nestopia emulator core with a GUI";
|
|
|
|
changelog = "https://raw.githubusercontent.com/0ldsk00l/nestopia/${finalAttrs.src.rev}/ChangeLog";
|
|
|
|
license = lib.licenses.gpl2Plus;
|
2023-08-04 18:23:13 +00:00
|
|
|
mainProgram = "nestopia";
|
2024-01-24 20:33:38 +00:00
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
platforms = lib.platforms.linux;
|
2014-12-23 10:30:22 +00:00
|
|
|
};
|
2024-01-24 20:33:38 +00:00
|
|
|
})
|