2021-12-17 22:06:54 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, docutils
|
|
|
|
, gettext
|
|
|
|
, glibcLocales
|
|
|
|
, glib-networking
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
|
|
|
, python3
|
|
|
|
, python3Packages
|
2022-02-22 01:02:54 +00:00
|
|
|
, steam-run
|
2021-12-17 22:06:54 +00:00
|
|
|
, unzip
|
|
|
|
, webkitgtk
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "minigalaxy";
|
2022-09-27 16:28:49 +00:00
|
|
|
version = "1.2.2";
|
2021-12-17 22:06:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sharkwouter";
|
|
|
|
repo = pname;
|
2022-09-22 13:52:46 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-09-27 16:28:49 +00:00
|
|
|
sha256 = "sha256-bpNtdMYBl2dJ4PQsxkhm/Y+3A0dD/Y2XC0VaUYyRhvM=";
|
2021-12-17 22:06:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
env HOME=$PWD LC_ALL=en_US.UTF-8 pytest
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
wrapGAppsHook
|
2022-12-29 16:40:14 +00:00
|
|
|
gobject-introspection
|
2021-12-17 22:06:54 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib-networking
|
|
|
|
gtk3
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [
|
2021-12-17 22:06:54 +00:00
|
|
|
glibcLocales
|
|
|
|
pytest
|
|
|
|
tox
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonPath = [
|
|
|
|
docutils
|
|
|
|
python3.pkgs.pygobject3
|
|
|
|
python3.pkgs.requests
|
|
|
|
python3.pkgs.setuptools
|
|
|
|
python3.pkgs.simplejson
|
2022-02-22 01:02:54 +00:00
|
|
|
steam-run
|
2021-12-17 22:06:54 +00:00
|
|
|
unzip
|
|
|
|
webkitgtk
|
|
|
|
];
|
|
|
|
|
|
|
|
# Run Linux games using the Steam Runtime by using steam-run in the wrapper
|
2022-12-29 16:40:14 +00:00
|
|
|
# FIXME: not working with makeBinaryWrapper
|
2021-12-17 22:06:54 +00:00
|
|
|
postFixup = ''
|
2022-02-22 01:02:54 +00:00
|
|
|
sed -e 's#exec -a "$0"#exec -a "$0" ${steam-run}/bin/steam-run#' -i $out/bin/minigalaxy
|
2021-12-17 22:06:54 +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";
|
|
|
|
description = "A simple GOG client for Linux";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ srapenne ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|