diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-11-13 23:45:45 -0300 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-11-14 12:52:22 -0300 |
commit | f35f6ff9f962ca65503ae5f9e2759476920ad461 (patch) | |
tree | 0454256218f01264a4a162d75c42b88b73e2447f /pkgs/applications | |
parent | 7cac4e5579179149a4f7f6082f0dd05ae8b129b0 (diff) | |
download | nixlib-f35f6ff9f962ca65503ae5f9e2759476920ad461.tar nixlib-f35f6ff9f962ca65503ae5f9e2759476920ad461.tar.gz nixlib-f35f6ff9f962ca65503ae5f9e2759476920ad461.tar.bz2 nixlib-f35f6ff9f962ca65503ae5f9e2759476920ad461.tar.lz nixlib-f35f6ff9f962ca65503ae5f9e2759476920ad461.tar.xz nixlib-f35f6ff9f962ca65503ae5f9e2759476920ad461.tar.zst nixlib-f35f6ff9f962ca65503ae5f9e2759476920ad461.zip |
fceux: refactor to new overlay-style overridable attributes
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/emulators/fceux/default.nix | 38 |
1 files changed, 29 insertions, 9 deletions
diff --git a/pkgs/applications/emulators/fceux/default.nix b/pkgs/applications/emulators/fceux/default.nix index e48f1cf7d56c..0225f76a2aaf 100644 --- a/pkgs/applications/emulators/fceux/default.nix +++ b/pkgs/applications/emulators/fceux/default.nix @@ -1,24 +1,44 @@ -{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, wrapQtAppsHook, SDL2, lua5_1, minizip, x264 }: +{ lib +, stdenv +, fetchFromGitHub +, SDL2 +, cmake +, lua +, minizip +, pkg-config +, wrapQtAppsHook +, x264 +}: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "fceux"; version = "2.6.4"; src = fetchFromGitHub { owner = "TASEmulators"; - repo = pname; - rev = "${pname}-${version}"; - sha256 = "sha256-Q6r/iBlmi0z40+U6OLZCahS0io4IBBGZMP1mJH7szRM="; + repo = "fceux"; + rev = "fceux-${finalAttrs.version}"; + hash = "sha256-Q6r/iBlmi0z40+U6OLZCahS0io4IBBGZMP1mJH7szRM="; }; - nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ]; - buildInputs = [ SDL2 lua5_1 minizip x264 ]; + nativeBuildInputs = [ + cmake + pkg-config + wrapQtAppsHook + ]; + + buildInputs = [ + SDL2 + lua + minizip + x264 + ]; meta = with lib; { + homepage = "http://www.fceux.com/"; description = "A Nintendo Entertainment System (NES) Emulator"; license = licenses.gpl2Plus; maintainers = with maintainers; [ sbruder scubed2 ]; - homepage = "http://www.fceux.com/"; platforms = platforms.linux; }; -} +}) |