diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/fs/fsuae-launcher/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/fs/fsuae-launcher/package.nix | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/fs/fsuae-launcher/package.nix b/nixpkgs/pkgs/by-name/fs/fsuae-launcher/package.nix new file mode 100644 index 000000000000..da6eb5ed35b8 --- /dev/null +++ b/nixpkgs/pkgs/by-name/fs/fsuae-launcher/package.nix @@ -0,0 +1,57 @@ +{ lib +, fetchurl +, fsuae +, gettext +, python3Packages +, stdenv +, libsForQt5 +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "fs-uae-launcher"; + version = "3.1.70"; + + src = fetchurl { + url = "https://fs-uae.net/files/FS-UAE-Launcher/Stable/${finalAttrs.version}/fs-uae-launcher-${finalAttrs.version}.tar.xz"; + hash = "sha256-yvJ8sa44V13SEUJ6C9SgS+N2ZFH5+20TTL2ICY9A36c="; + }; + + nativeBuildInputs = [ + gettext + python3Packages.python + libsForQt5.wrapQtAppsHook + ]; + + buildInputs = with python3Packages; [ + pyqt5 + requests + setuptools + ]; + + strictDeps = true; + + makeFlags = [ "prefix=$(out)" ]; + + dontWrapQtApps = true; + + preFixup = '' + wrapQtApp "$out/bin/fs-uae-launcher" \ + --set PYTHONPATH "$PYTHONPATH" + + # fs-uae-launcher search side by side for executables and shared files + # see $src/fsgs/plugins/pluginexecutablefinder.py#find_executable + ln -s ${fsuae}/bin/fs-uae $out/bin + ln -s ${fsuae}/bin/fs-uae-device-helper $out/bin + ln -s ${fsuae}/share/fs-uae $out/share/fs-uae + ''; + + meta = { + homepage = "https://fs-uae.net"; + description = "Graphical front-end for the FS-UAE emulator"; + license = lib.licenses.gpl2Plus; + mainProgram = "fs-uae-launcher"; + maintainers = with lib.maintainers; [ sander AndersonTorres ]; + platforms = with lib.systems.inspect; + patternLogicalAnd patterns.isx86 patterns.isLinux; + }; +}) |