2024-10-15 00:10:06 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
SDL2,
|
|
|
|
cmake,
|
|
|
|
fetchFromGitHub,
|
2024-10-15 00:40:38 +00:00
|
|
|
ffmpeg,
|
|
|
|
libX11,
|
|
|
|
libXdmcp,
|
|
|
|
libxcb,
|
|
|
|
lua5_1,
|
2024-10-15 00:10:06 +00:00
|
|
|
minizip,
|
|
|
|
pkg-config,
|
|
|
|
qt5,
|
2024-10-15 01:12:53 +00:00
|
|
|
qt6,
|
2024-10-15 00:10:06 +00:00
|
|
|
stdenv,
|
|
|
|
x264,
|
2024-10-15 01:12:53 +00:00
|
|
|
# Configurable options
|
|
|
|
___qtVersion ? "5",
|
2022-11-14 02:45:45 +00:00
|
|
|
}:
|
2014-06-07 22:08:57 +00:00
|
|
|
|
2024-10-13 15:33:14 +00:00
|
|
|
let
|
2024-10-15 01:12:53 +00:00
|
|
|
qtVersionDictionary = {
|
|
|
|
"5" = qt5;
|
|
|
|
"6" = qt6;
|
|
|
|
};
|
|
|
|
inherit (qtVersionDictionary.${___qtVersion}) qttools wrapQtAppsHook;
|
2024-10-13 15:33:14 +00:00
|
|
|
in
|
2024-10-15 01:12:53 +00:00
|
|
|
assert lib.elem ___qtVersion [
|
|
|
|
"5"
|
|
|
|
"6"
|
|
|
|
];
|
2022-11-14 02:45:45 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-08-10 22:19:54 +00:00
|
|
|
pname = "fceux";
|
2024-10-15 00:50:37 +00:00
|
|
|
version = "2.6.6-unstable-2024-06-09";
|
2014-06-07 22:08:57 +00:00
|
|
|
|
2020-02-08 22:15:00 +00:00
|
|
|
src = fetchFromGitHub {
|
2022-01-15 09:17:02 +00:00
|
|
|
owner = "TASEmulators";
|
2022-11-14 02:45:45 +00:00
|
|
|
repo = "fceux";
|
2024-10-15 00:50:37 +00:00
|
|
|
rev = "f980ec2bc7dc962f6cd76b9ae3131f2eb902c9e7";
|
|
|
|
hash = "sha256-baAjrTzRp61Lw1p5axKJ97PuFiuBNQewXrlN0s8o7us=";
|
2014-06-07 22:08:57 +00:00
|
|
|
};
|
|
|
|
|
2022-11-14 02:45:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
2024-10-15 00:40:38 +00:00
|
|
|
ffmpeg
|
|
|
|
libX11
|
|
|
|
libXdmcp
|
|
|
|
libxcb
|
|
|
|
lua5_1
|
2022-11-14 02:45:45 +00:00
|
|
|
minizip
|
2024-10-15 00:40:38 +00:00
|
|
|
qttools
|
2022-11-14 02:45:45 +00:00
|
|
|
x264
|
|
|
|
];
|
2014-06-07 22:08:57 +00:00
|
|
|
|
2024-10-15 00:40:38 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2024-01-30 10:21:11 +00:00
|
|
|
meta = {
|
2022-11-14 02:45:45 +00:00
|
|
|
homepage = "http://www.fceux.com/";
|
2014-06-07 22:08:57 +00:00
|
|
|
description = "Nintendo Entertainment System (NES) Emulator";
|
2024-01-30 10:21:11 +00:00
|
|
|
changelog = "https://github.com/TASEmulators/blob/fceux/${finalAttrs.src.rev}/changelog.txt";
|
|
|
|
license = with lib.licenses; [ gpl2Plus ];
|
2024-10-15 00:10:06 +00:00
|
|
|
mainProgram = "fceux";
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
AndersonTorres
|
|
|
|
sbruder
|
|
|
|
];
|
2024-01-30 10:21:11 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2014-06-07 22:08:57 +00:00
|
|
|
};
|
2022-11-14 02:45:45 +00:00
|
|
|
})
|