nixpkgs/pkgs/by-name/fc/fceux/package.nix

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

76 lines
1.3 KiB
Nix
Raw Normal View History

2024-10-15 00:10:06 +00:00
{
lib,
SDL2,
cmake,
fetchFromGitHub,
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",
}:
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"
];
stdenv.mkDerivation (finalAttrs: {
pname = "fceux";
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 {
owner = "TASEmulators";
repo = "fceux";
rev = "f980ec2bc7dc962f6cd76b9ae3131f2eb902c9e7";
hash = "sha256-baAjrTzRp61Lw1p5axKJ97PuFiuBNQewXrlN0s8o7us=";
2014-06-07 22:08:57 +00:00
};
nativeBuildInputs = [
cmake
pkg-config
wrapQtAppsHook
];
buildInputs = [
SDL2
ffmpeg
libX11
libXdmcp
libxcb
lua5_1
minizip
qttools
x264
];
2014-06-07 22:08:57 +00:00
strictDeps = true;
meta = {
homepage = "http://www.fceux.com/";
2014-06-07 22:08:57 +00:00
description = "Nintendo Entertainment System (NES) Emulator";
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
];
platforms = lib.platforms.linux;
2014-06-07 22:08:57 +00:00
};
})