forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / fc / fceux / package.nix
blobc0355e9e30ec2ec6c8f78b428362b54a8ef69c9c
2   lib,
3   SDL2,
4   cmake,
5   fetchFromGitHub,
6   ffmpeg,
7   libX11,
8   libXdmcp,
9   libxcb,
10   lua5_1,
11   minizip,
12   pkg-config,
13   qt5,
14   qt6,
15   stdenv,
16   x264,
17   # Configurable options
18   ___qtVersion ? "5",
21 let
22   qtVersionDictionary = {
23     "5" = qt5;
24     "6" = qt6;
25   };
26   inherit (qtVersionDictionary.${___qtVersion}) qttools wrapQtAppsHook;
28 assert lib.elem ___qtVersion [
29   "5"
30   "6"
32 stdenv.mkDerivation (finalAttrs: {
33   pname = "fceux";
34   version = "2.6.6-unstable-2024-06-09";
36   src = fetchFromGitHub {
37     owner = "TASEmulators";
38     repo = "fceux";
39     rev = "f980ec2bc7dc962f6cd76b9ae3131f2eb902c9e7";
40     hash = "sha256-baAjrTzRp61Lw1p5axKJ97PuFiuBNQewXrlN0s8o7us=";
41   };
43   nativeBuildInputs = [
44     cmake
45     pkg-config
46     wrapQtAppsHook
47   ];
49   buildInputs = [
50     SDL2
51     ffmpeg
52     libX11
53     libXdmcp
54     libxcb
55     lua5_1
56     minizip
57     qttools
58     x264
59   ];
61   strictDeps = true;
63   meta = {
64     homepage = "http://www.fceux.com/";
65     description = "Nintendo Entertainment System (NES) Emulator";
66     changelog = "https://github.com/TASEmulators/blob/fceux/${finalAttrs.src.rev}/changelog.txt";
67     license = with lib.licenses; [ gpl2Plus ];
68     mainProgram = "fceux";
69     maintainers = with lib.maintainers; [
70       AndersonTorres
71       sbruder
72     ];
73     platforms = lib.platforms.linux;
74   };