atari++: refactor

+29 -12
+29 -12
pkgs/applications/emulators/atari++/default.nix
··· 1 - { lib, stdenv, fetchurl, libSM, libX11, libICE, SDL, alsa-lib, gcc-unwrapped, libXext }: 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , SDL 5 + , alsa-lib 6 + , gcc-unwrapped 7 + , libICE 8 + , libSM 9 + , libX11 10 + , libXext 11 + }: 2 12 3 - stdenv.mkDerivation rec { 13 + stdenv.mkDerivation (finalAttrs: { 4 14 pname = "atari++"; 5 15 version = "1.85"; 6 16 7 17 src = fetchurl { 8 - url = "http://www.xl-project.com/download/${pname}_${version}.tar.gz"; 9 - sha256 = "sha256-LbGTVUs1XXR+QfDhCxX9UMkQ3bnk4z0ckl94Cwwe9IQ="; 18 + url = "http://www.xl-project.com/download/atari++_${finalAttrs.version}.tar.gz"; 19 + hash = "sha256-LbGTVUs1XXR+QfDhCxX9UMkQ3bnk4z0ckl94Cwwe9IQ="; 10 20 }; 11 21 12 - buildInputs = [ libSM libX11 SDL libICE alsa-lib gcc-unwrapped libXext ]; 22 + buildInputs = [ 23 + SDL 24 + alsa-lib 25 + gcc-unwrapped 26 + libICE 27 + libSM 28 + libX11 29 + libXext 30 + ]; 13 31 14 32 postFixup = '' 15 - patchelf --set-rpath ${lib.makeLibraryPath buildInputs} "$out/bin/atari++" 33 + patchelf --set-rpath ${lib.makeLibraryPath finalAttrs.buildInputs} "$out/bin/atari++" 16 34 ''; 17 35 18 36 meta = with lib; { 19 37 homepage = "http://www.xl-project.com/"; 20 38 description = "An enhanced, cycle-accurated Atari emulator"; 21 39 longDescription = '' 22 - The Atari++ Emulator is a Unix based emulator of the Atari eight 23 - bit computers, namely the Atari 400 and 800, the Atari 400XL, 24 - 800XL and 130XE, and the Atari 5200 game console. The emulator 25 - is auto-configurable and will compile on a variety of systems 26 - (Linux, Solaris, Irix). 40 + The Atari++ Emulator is a Unix based emulator of the Atari eight bit 41 + computers, namely the Atari 400 and 800, the Atari 400XL, 800XL and 130XE, 42 + and the Atari 5200 game console. The emulator is auto-configurable and 43 + will compile on a variety of systems (Linux, Solaris, Irix). 27 44 ''; 28 45 maintainers = [ maintainers.AndersonTorres ]; 29 46 license = licenses.gpl2Plus; 30 47 platforms = lib.platforms.linux; 31 48 }; 32 - } 49 + })