2022-01-03 23:19:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, gettext
|
|
|
|
, python3
|
2022-10-03 11:24:42 +01:00
|
|
|
, wrapQtAppsHook
|
|
|
|
, fsuae
|
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";
|
2023-07-06 17:00:25 +01:00
|
|
|
version = "3.1.68";
|
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";
|
|
|
|
hash = "sha256-42EERC2yeODx0HPbwr4vmpN80z6WSWi3WzJMOT+OwDA=";
|
2021-07-18 17:39:13 +01:00
|
|
|
};
|
|
|
|
|
2022-01-03 23:19:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
python3
|
2022-10-03 11:24:42 +01:00
|
|
|
wrapQtAppsHook
|
2022-01-03 23:19:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = with python3.pkgs; [
|
|
|
|
pyqt5
|
|
|
|
requests
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
preFixup = ''
|
2023-07-07 00:46:21 +01:00
|
|
|
wrapQtApp "$out/bin/fs-uae-launcher" \
|
|
|
|
--set PYTHONPATH "$PYTHONPATH" \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ fsuae ]}
|
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;
|
|
|
|
maintainers = with lib.maintainers; [ sander AndersonTorres ];
|
2021-07-18 17:39:13 +01:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
2023-07-07 00:46:21 +01:00
|
|
|
})
|
2022-10-03 11:24:42 +01:00
|
|
|
|