fsuae-launcher: prepare for by-name migration

- get rid of libsForQt5.callPackage
- set strictDeps
- meta.mainProgram
- meta.platforms uses lib.systems machinery
This commit is contained in:
Anderson Torres 2024-03-10 00:22:21 -03:00
parent f3db387b97
commit 91856c93b3
2 changed files with 13 additions and 10 deletions

View File

@ -1,10 +1,10 @@
{ lib
, stdenv
, fetchurl
, gettext
, python3
, wrapQtAppsHook
, fsuae
, gettext
, python3Packages
, stdenv
, libsForQt5
}:
stdenv.mkDerivation (finalAttrs: {
@ -18,16 +18,18 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
gettext
python3
wrapQtAppsHook
python3Packages.python
libsForQt5.wrapQtAppsHook
];
buildInputs = with python3.pkgs; [
buildInputs = with python3Packages; [
pyqt5
requests
setuptools
];
strictDeps = true;
makeFlags = [ "prefix=$(out)" ];
dontWrapQtApps = true;
@ -47,8 +49,9 @@ stdenv.mkDerivation (finalAttrs: {
homepage = "https://fs-uae.net";
description = "Graphical front-end for the FS-UAE emulator";
license = lib.licenses.gpl2Plus;
mainProgram = "fs-uae-launcher";
maintainers = with lib.maintainers; [ sander AndersonTorres ];
platforms = [ "i686-linux" "x86_64-linux" ];
platforms = with lib.systems.inspect;
patternLogicalAnd patterns.isx86 patterns.isLinux;
};
})

View File

@ -2689,7 +2689,7 @@ with pkgs;
fsuae = callPackage ../applications/emulators/fs-uae { };
fsuae-launcher = libsForQt5.callPackage ../applications/emulators/fs-uae/launcher.nix { };
fsuae-launcher = callPackage ../applications/emulators/fs-uae/launcher.nix { };
fuc = callPackage ../tools/misc/fuc { };