fceux: refactor to new overlay-style overridable attributes

+33 -10
+29 -9
pkgs/applications/emulators/fceux/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, pkg-config, wrapQtAppsHook, SDL2, lua5_1, minizip, x264 }: 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , SDL2 5 + , cmake 6 + , lua 7 + , minizip 8 + , pkg-config 9 + , wrapQtAppsHook 10 + , x264 11 + }: 2 12 3 - stdenv.mkDerivation rec { 13 + stdenv.mkDerivation (finalAttrs: { 4 14 pname = "fceux"; 5 15 version = "2.6.4"; 6 16 7 17 src = fetchFromGitHub { 8 18 owner = "TASEmulators"; 9 - repo = pname; 10 - rev = "${pname}-${version}"; 11 - sha256 = "sha256-Q6r/iBlmi0z40+U6OLZCahS0io4IBBGZMP1mJH7szRM="; 19 + repo = "fceux"; 20 + rev = "fceux-${finalAttrs.version}"; 21 + hash = "sha256-Q6r/iBlmi0z40+U6OLZCahS0io4IBBGZMP1mJH7szRM="; 12 22 }; 13 23 14 - nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ]; 15 - buildInputs = [ SDL2 lua5_1 minizip x264 ]; 24 + nativeBuildInputs = [ 25 + cmake 26 + pkg-config 27 + wrapQtAppsHook 28 + ]; 29 + 30 + buildInputs = [ 31 + SDL2 32 + lua 33 + minizip 34 + x264 35 + ]; 16 36 17 37 meta = with lib; { 38 + homepage = "http://www.fceux.com/"; 18 39 description = "A Nintendo Entertainment System (NES) Emulator"; 19 40 license = licenses.gpl2Plus; 20 41 maintainers = with maintainers; [ sbruder scubed2 ]; 21 - homepage = "http://www.fceux.com/"; 22 42 platforms = platforms.linux; 23 43 }; 24 - } 44 + })
+4 -1
pkgs/top-level/all-packages.nix
··· 1557 1557 1558 1558 emulationstation = callPackage ../applications/emulators/emulationstation { }; 1559 1559 1560 - fceux = libsForQt5.callPackage ../applications/emulators/fceux { }; 1560 + fceux = callPackage ../applications/emulators/fceux { 1561 + lua = lua5_1; 1562 + inherit (libsForQt5) wrapQtAppsHook; 1563 + }; 1561 1564 1562 1565 firebird-emu = libsForQt5.callPackage ../applications/emulators/firebird-emu { }; 1563 1566