2022-01-07 04:07:37 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
2022-10-06 18:32:54 +00:00
|
|
|
, fsuae
|
2024-04-21 15:54:59 +00:00
|
|
|
, gettext
|
|
|
|
, python3Packages
|
|
|
|
, stdenv
|
|
|
|
, libsForQt5
|
2021-07-18 21:22:44 +00:00
|
|
|
}:
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-07-18 21:22:44 +00:00
|
|
|
pname = "fs-uae-launcher";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.1.70";
|
2021-07-18 21:22:44 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-07-15 17:15:38 +00:00
|
|
|
url = "https://fs-uae.net/files/FS-UAE-Launcher/Stable/${finalAttrs.version}/fs-uae-launcher-${finalAttrs.version}.tar.xz";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-yvJ8sa44V13SEUJ6C9SgS+N2ZFH5+20TTL2ICY9A36c=";
|
2021-07-18 21:22:44 +00:00
|
|
|
};
|
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
2024-04-21 15:54:59 +00:00
|
|
|
python3Packages.python
|
|
|
|
libsForQt5.wrapQtAppsHook
|
2022-01-07 04:07:37 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
buildInputs = with python3Packages; [
|
2022-01-07 04:07:37 +00:00
|
|
|
pyqt5
|
|
|
|
requests
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2021-07-18 21:22:44 +00:00
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
2022-01-07 04:07:37 +00:00
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
2023-07-15 17:15:38 +00:00
|
|
|
wrapQtApp "$out/bin/fs-uae-launcher" \
|
|
|
|
--set PYTHONPATH "$PYTHONPATH"
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
# fs-uae-launcher search side by side for executables and shared files
|
2023-07-15 17:15:38 +00:00
|
|
|
# see $src/fsgs/plugins/pluginexecutablefinder.py#find_executable
|
|
|
|
ln -s ${fsuae}/bin/fs-uae $out/bin
|
2023-10-09 19:29:22 +00:00
|
|
|
ln -s ${fsuae}/bin/fs-uae-device-helper $out/bin
|
2023-10-19 13:55:26 +00:00
|
|
|
ln -s ${fsuae}/share/fs-uae $out/share/fs-uae
|
2021-07-18 21:22:44 +00:00
|
|
|
'';
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
meta = {
|
2022-01-07 04:07:37 +00:00
|
|
|
homepage = "https://fs-uae.net";
|
2021-07-18 21:22:44 +00:00
|
|
|
description = "Graphical front-end for the FS-UAE emulator";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "fs-uae-launcher";
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with lib.maintainers; [ sander AndersonTorres ];
|
2024-04-21 15:54:59 +00:00
|
|
|
platforms = with lib.systems.inspect;
|
|
|
|
patternLogicalAnd patterns.isx86 patterns.isLinux;
|
2021-07-18 21:22:44 +00:00
|
|
|
};
|
2023-07-15 17:15:38 +00:00
|
|
|
})
|