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