2022-01-07 04:07:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, gettext
|
|
|
|
, python3
|
2022-10-06 18:32:54 +00:00
|
|
|
, wrapQtAppsHook
|
|
|
|
, fsuae
|
2021-07-18 21:22:44 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fs-uae-launcher";
|
|
|
|
version = "3.0.5";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://fs-uae.net/stable/${version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1dknra4ngz7bpppwqghmza1q68pn1yaw54p9ba0f42zwp427ly97";
|
|
|
|
};
|
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
python3
|
2022-10-06 18:32:54 +00:00
|
|
|
wrapQtAppsHook
|
2022-01-07 04:07:37 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = with python3.pkgs; [
|
|
|
|
pyqt5
|
|
|
|
requests
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
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 = ''
|
|
|
|
wrapQtApp "$out/bin/fs-uae-launcher" --set PYTHONPATH "$PYTHONPATH" \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ fsuae ]}
|
2021-07-18 21:22:44 +00:00
|
|
|
'';
|
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://fs-uae.net";
|
2021-07-18 21:22:44 +00:00
|
|
|
description = "Graphical front-end for the FS-UAE emulator";
|
2022-10-06 18:32:54 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2022-01-07 04:07:37 +00:00
|
|
|
maintainers = with maintainers; [ sander AndersonTorres ];
|
2021-07-18 21:22:44 +00:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|
2022-10-06 18:32:54 +00:00
|
|
|
|