mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-09 16:18:34 +01:00
97 lines
2.5 KiB
Nix
97 lines
2.5 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
gamemode,
|
|
gobject-introspection,
|
|
icoextract,
|
|
imagemagick,
|
|
lib,
|
|
libayatana-appindicator,
|
|
libcanberra-gtk3,
|
|
meson,
|
|
ninja,
|
|
nix-update-script,
|
|
python3Packages,
|
|
umu-launcher,
|
|
wrapGAppsHook3,
|
|
xdg-utils,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "faugus-launcher";
|
|
version = "1.9.10";
|
|
pyproject = false;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Faugus";
|
|
repo = "faugus-launcher";
|
|
tag = version;
|
|
hash = "sha256-XYEqC+vqB8dHGxDZQnyYEG2FgxfOakXB0u0OrIwsf0k=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gobject-introspection
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
libayatana-appindicator
|
|
];
|
|
|
|
build-system = [
|
|
meson
|
|
ninja
|
|
];
|
|
|
|
dependencies = with python3Packages; [
|
|
filelock
|
|
pillow
|
|
psutil
|
|
pygobject3
|
|
requests
|
|
vdf
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace faugus_launcher.py \
|
|
--replace-fail "PathManager.find_binary('faugus-run')" "'$out/bin/.faugus-run-wrapped'" \
|
|
--replace-fail "PathManager.find_binary('faugus-proton-manager')" "'$out/bin/.faugus-proton-manager-wrapped'" \
|
|
--replace-fail "PathManager.user_data('faugus-launcher/umu-run')" "'${lib.getExe umu-launcher}'" \
|
|
--replace-fail 'Exec={faugus_run}' 'Exec=faugus-run'
|
|
|
|
substituteInPlace faugus_run.py \
|
|
--replace-fail "PathManager.find_binary('faugus-components')" "'$out/bin/.faugus-components-wrapped'" \
|
|
--replace-fail "PathManager.user_data('faugus-launcher/umu-run')" "'${lib.getExe umu-launcher}'" \
|
|
--replace-fail "PathManager.find_library('libgamemode.so.0')" "'${lib.getLib gamemode}/lib/libgamemode.so.0'" \
|
|
--replace-fail "PathManager.find_library('libgamemodeauto.so.0')" "'${lib.getLib gamemode}/lib/libgamemodeauto.so.0'"
|
|
'';
|
|
|
|
dontWrapGApps = true;
|
|
|
|
preFixup = ''
|
|
makeWrapperArgs+=(
|
|
"''${gappsWrapperArgs[@]}"
|
|
--suffix PATH : "${
|
|
lib.makeBinPath [
|
|
icoextract
|
|
imagemagick
|
|
libcanberra-gtk3
|
|
umu-launcher
|
|
xdg-utils
|
|
]
|
|
}"
|
|
)
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Simple and lightweight app for running Windows games using UMU-Launcher";
|
|
homepage = "https://github.com/Faugus/faugus-launcher";
|
|
changelog = "https://github.com/Faugus/faugus-launcher/releases/tag/${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ RoGreat ];
|
|
mainProgram = "faugus-launcher";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|