2022-01-07 04:07:37 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, docutils
|
|
|
|
, gettext
|
|
|
|
, glibcLocales
|
|
|
|
, glib-networking
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
|
|
|
, python3
|
|
|
|
, python3Packages
|
2022-03-05 16:20:37 +00:00
|
|
|
, steam-run
|
2022-01-07 04:07:37 +00:00
|
|
|
, unzip
|
|
|
|
, webkitgtk
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2022-01-07 04:07:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "minigalaxy";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "1.2.2";
|
2022-01-07 04:07:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sharkwouter";
|
|
|
|
repo = pname;
|
2022-09-30 11:47:45 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
sha256 = "sha256-bpNtdMYBl2dJ4PQsxkhm/Y+3A0dD/Y2XC0VaUYyRhvM=";
|
2022-01-07 04:07:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
env HOME=$PWD LC_ALL=en_US.UTF-8 pytest
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2023-03-15 16:39:30 +00:00
|
|
|
gobject-introspection
|
2022-01-07 04:07:37 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib-networking
|
|
|
|
gtk3
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [
|
2022-01-07 04:07:37 +00:00
|
|
|
glibcLocales
|
|
|
|
pytest
|
|
|
|
tox
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonPath = [
|
|
|
|
docutils
|
|
|
|
python3.pkgs.pygobject3
|
|
|
|
python3.pkgs.requests
|
|
|
|
python3.pkgs.setuptools
|
|
|
|
python3.pkgs.simplejson
|
2022-03-05 16:20:37 +00:00
|
|
|
steam-run
|
2022-01-07 04:07:37 +00:00
|
|
|
unzip
|
|
|
|
webkitgtk
|
|
|
|
];
|
|
|
|
|
|
|
|
# Run Linux games using the Steam Runtime by using steam-run in the wrapper
|
2023-03-15 16:39:30 +00:00
|
|
|
# FIXME: not working with makeBinaryWrapper
|
2022-01-07 04:07:37 +00:00
|
|
|
postFixup = ''
|
2022-03-05 16:20:37 +00:00
|
|
|
sed -e 's#exec -a "$0"#exec -a "$0" ${steam-run}/bin/steam-run#' -i $out/bin/minigalaxy
|
2022-01-07 04:07:37 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://sharkwouter.github.io/minigalaxy/";
|
|
|
|
changelog = "https://github.com/sharkwouter/minigalaxy/blob/${version}/CHANGELOG.md";
|
|
|
|
downloadPage = "https://github.com/sharkwouter/minigalaxy/releases";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simple GOG client for Linux";
|
2022-01-07 04:07:37 +00:00
|
|
|
license = licenses.gpl3;
|
2023-11-16 04:20:00 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-01-07 04:07:37 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|