diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-04-22 09:35:02 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-04-22 12:57:12 -0300 |
commit | ada2485ff397bc4adcae778bdfa0b242e8dcc4d4 (patch) | |
tree | 6baeaeb1dd9870ace184ed0d5febc169b9279401 /pkgs/applications/emulators | |
parent | 9fec09d93cb2cf0410f050a93b2897805e7b452f (diff) |
atari++: refactor
Diffstat (limited to 'pkgs/applications/emulators')
-rw-r--r-- | pkgs/applications/emulators/atari++/default.nix | 41 |
1 files changed, 29 insertions, 12 deletions
diff --git a/pkgs/applications/emulators/atari++/default.nix b/pkgs/applications/emulators/atari++/default.nix index 7716e86ed1831..f78bf7e4cf06a 100644 --- a/pkgs/applications/emulators/atari++/default.nix +++ b/pkgs/applications/emulators/atari++/default.nix @@ -1,32 +1,49 @@ -{ lib, stdenv, fetchurl, libSM, libX11, libICE, SDL, alsa-lib, gcc-unwrapped, libXext }: +{ lib +, stdenv +, fetchurl +, SDL +, alsa-lib +, gcc-unwrapped +, libICE +, libSM +, libX11 +, libXext +}: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "atari++"; version = "1.85"; src = fetchurl { - url = "http://www.xl-project.com/download/${pname}_${version}.tar.gz"; - sha256 = "sha256-LbGTVUs1XXR+QfDhCxX9UMkQ3bnk4z0ckl94Cwwe9IQ="; + url = "http://www.xl-project.com/download/atari++_${finalAttrs.version}.tar.gz"; + hash = "sha256-LbGTVUs1XXR+QfDhCxX9UMkQ3bnk4z0ckl94Cwwe9IQ="; }; - buildInputs = [ libSM libX11 SDL libICE alsa-lib gcc-unwrapped libXext ]; + buildInputs = [ + SDL + alsa-lib + gcc-unwrapped + libICE + libSM + libX11 + libXext + ]; postFixup = '' - patchelf --set-rpath ${lib.makeLibraryPath buildInputs} "$out/bin/atari++" + patchelf --set-rpath ${lib.makeLibraryPath finalAttrs.buildInputs} "$out/bin/atari++" ''; meta = with lib; { homepage = "http://www.xl-project.com/"; description = "An enhanced, cycle-accurated Atari emulator"; longDescription = '' - The Atari++ Emulator is a Unix based emulator of the Atari eight - bit computers, namely the Atari 400 and 800, the Atari 400XL, - 800XL and 130XE, and the Atari 5200 game console. The emulator - is auto-configurable and will compile on a variety of systems - (Linux, Solaris, Irix). + The Atari++ Emulator is a Unix based emulator of the Atari eight bit + computers, namely the Atari 400 and 800, the Atari 400XL, 800XL and 130XE, + and the Atari 5200 game console. The emulator is auto-configurable and + will compile on a variety of systems (Linux, Solaris, Irix). ''; maintainers = [ maintainers.AndersonTorres ]; license = licenses.gpl2Plus; platforms = lib.platforms.linux; }; -} +}) |