fsuae-launcher: refactor

- New rec-less, overlay-style overridable recursive attributes (in effect since
https://github.com/NixOS/nixpkgs/pull/119942);
- remove `with lib;`

+10 -9
+10 -9
pkgs/applications/emulators/fs-uae/launcher.nix
··· 7 7 , fsuae 8 8 }: 9 9 10 - stdenv.mkDerivation rec { 10 + stdenv.mkDerivation (finalAttrs: { 11 11 pname = "fs-uae-launcher"; 12 12 version = "3.1.68"; 13 13 14 14 src = fetchurl { 15 - url = "https://fs-uae.net/files/FS-UAE-Launcher/Stable/${version}/${pname}-${version}.tar.xz"; 16 - sha256 = "sha256-42EERC2yeODx0HPbwr4vmpN80z6WSWi3WzJMOT+OwDA="; 15 + url = "https://fs-uae.net/files/FS-UAE-Launcher/Stable/${finalAttrs.version}/fs-uae-launcher-${finalAttrs.version}.tar.xz"; 16 + hash = "sha256-42EERC2yeODx0HPbwr4vmpN80z6WSWi3WzJMOT+OwDA="; 17 17 }; 18 18 19 19 nativeBuildInputs = [ ··· 33 33 dontWrapQtApps = true; 34 34 35 35 preFixup = '' 36 - wrapQtApp "$out/bin/fs-uae-launcher" --set PYTHONPATH "$PYTHONPATH" \ 37 - --prefix PATH : ${lib.makeBinPath [ fsuae ]} 36 + wrapQtApp "$out/bin/fs-uae-launcher" \ 37 + --set PYTHONPATH "$PYTHONPATH" \ 38 + --prefix PATH : ${lib.makeBinPath [ fsuae ]} 38 39 ''; 39 40 40 - meta = with lib; { 41 + meta = { 41 42 homepage = "https://fs-uae.net"; 42 43 description = "Graphical front-end for the FS-UAE emulator"; 43 - license = licenses.gpl2Plus; 44 - maintainers = with maintainers; [ sander AndersonTorres ]; 44 + license = lib.licenses.gpl2Plus; 45 + maintainers = with lib.maintainers; [ sander AndersonTorres ]; 45 46 platforms = [ "i686-linux" "x86_64-linux" ]; 46 47 }; 47 - } 48 + }) 48 49