Commit b5cd0848 authored by Anderson Torres's avatar Anderson Torres
Browse files

fsuae-launcher: refactor

- New rec-less, overlay-style overridable recursive attributes (in effect since
https://github.com/NixOS/nixpkgs/pull/119942);
- remove `with lib;`
parent ce8ad30f
Loading
Loading
Loading
Loading
+10 −9
Original line number Diff line number Diff line
@@ -7,13 +7,13 @@
, fsuae
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "fs-uae-launcher";
  version = "3.1.68";

  src = fetchurl {
    url = "https://fs-uae.net/files/FS-UAE-Launcher/Stable/${version}/${pname}-${version}.tar.xz";
    sha256 = "sha256-42EERC2yeODx0HPbwr4vmpN80z6WSWi3WzJMOT+OwDA=";
    url = "https://fs-uae.net/files/FS-UAE-Launcher/Stable/${finalAttrs.version}/fs-uae-launcher-${finalAttrs.version}.tar.xz";
    hash = "sha256-42EERC2yeODx0HPbwr4vmpN80z6WSWi3WzJMOT+OwDA=";
  };

  nativeBuildInputs = [
@@ -33,16 +33,17 @@ stdenv.mkDerivation rec {
  dontWrapQtApps = true;

  preFixup = ''
      wrapQtApp "$out/bin/fs-uae-launcher" --set PYTHONPATH "$PYTHONPATH" \
    wrapQtApp "$out/bin/fs-uae-launcher" \
      --set PYTHONPATH "$PYTHONPATH" \
      --prefix PATH : ${lib.makeBinPath [ fsuae ]}
  '';

  meta = with lib; {
  meta = {
    homepage = "https://fs-uae.net";
    description = "Graphical front-end for the FS-UAE emulator";
    license = licenses.gpl2Plus;
    maintainers = with  maintainers; [ sander AndersonTorres ];
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ sander AndersonTorres ];
    platforms = [ "i686-linux" "x86_64-linux" ];
  };
}
})