mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
935aa9e369
If set to true, the settings page cannot find GSettings schemas and crashes. Probably https://github.com/NixOS/nixpkgs/issues/56943
81 lines
1.7 KiB
Nix
81 lines
1.7 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, docutils
|
|
, gettext
|
|
, glibcLocales
|
|
, glib-networking
|
|
, gobject-introspection
|
|
, gtk3
|
|
, python3
|
|
, python3Packages
|
|
, steam-run
|
|
, unzip
|
|
, webkitgtk
|
|
, wrapGAppsHook
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "minigalaxy";
|
|
version = "1.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sharkwouter";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-BbtwLuG5TH/+06Ez8+mwSAjG1IWg9/3uxzjmgPHczAw=";
|
|
};
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
env HOME=$PWD LC_ALL=en_US.UTF-8 pytest
|
|
runHook postCheck
|
|
'';
|
|
|
|
# Cannot find GSettings schemas when opening settings,
|
|
# probably https://github.com/NixOS/nixpkgs/issues/56943
|
|
strictDeps = false;
|
|
|
|
nativeBuildInputs = [
|
|
gettext
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
glib-networking
|
|
gobject-introspection
|
|
gtk3
|
|
];
|
|
|
|
checkInputs = with python3Packages; [
|
|
glibcLocales
|
|
pytest
|
|
tox
|
|
];
|
|
|
|
pythonPath = [
|
|
docutils
|
|
python3.pkgs.pygobject3
|
|
python3.pkgs.requests
|
|
python3.pkgs.setuptools
|
|
python3.pkgs.simplejson
|
|
steam-run
|
|
unzip
|
|
webkitgtk
|
|
];
|
|
|
|
# Run Linux games using the Steam Runtime by using steam-run in the wrapper
|
|
postFixup = ''
|
|
sed -e 's#exec -a "$0"#exec -a "$0" ${steam-run}/bin/steam-run#' -i $out/bin/minigalaxy
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|