1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00
nixpkgs/pkgs/by-name/fs/fsuae-launcher/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

63 lines
1.5 KiB
Nix
Raw Permalink Normal View History

2022-01-03 23:19:59 +00:00
{ lib
, fetchurl
, fsuae
, gettext
, python3Packages
, stdenv
, libsForQt5
2021-07-18 17:39:13 +01:00
}:
stdenv.mkDerivation (finalAttrs: {
2021-07-18 17:39:13 +01:00
pname = "fs-uae-launcher";
version = "3.1.70";
2021-07-18 17:39:13 +01:00
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=";
2021-07-18 17:39:13 +01:00
};
2022-01-03 23:19:59 +00:00
nativeBuildInputs = [
gettext
python3Packages.python
libsForQt5.wrapQtAppsHook
2022-01-03 23:19:59 +00:00
];
buildInputs = with python3Packages; [
2022-01-03 23:19:59 +00:00
pyqt5
requests
setuptools
];
strictDeps = true;
2021-07-18 17:39:13 +01:00
makeFlags = [ "prefix=$(out)" ];
2022-01-03 23:19:59 +00:00
dontWrapQtApps = true;
postPatch = ''
substituteInPlace setup.py \
--replace-fail "distutils.core" "setuptools"
'';
preFixup = ''
wrapQtApp "$out/bin/fs-uae-launcher" \
2023-07-14 17:06:36 +01:00
--set PYTHONPATH "$PYTHONPATH"
# 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
ln -s ${fsuae}/bin/fs-uae-device-helper $out/bin
ln -s ${fsuae}/share/fs-uae $out/share/fs-uae
2021-07-18 17:39:13 +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";
license = lib.licenses.gpl2Plus;
mainProgram = "fs-uae-launcher";
maintainers = with lib.maintainers; [ sander AndersonTorres ];
platforms = with lib.systems.inspect;
patternLogicalAnd patterns.isx86 patterns.isLinux;
2021-07-18 17:39:13 +01:00
};
})