git.iko.soy/typeable/nixpkgs
on master help sign in
minigalaxy: init at 1.1.0
commit74ae0ea8b794b9ee055a942991ecd86504dd4131 authorSolene Rapenne <solene@perso.pw> dateFri 17 Dec 2021, 23:06 (5 years ago) parentc5440a4
2 files changed+78
pkgs/applications/misc/minigalaxy/default.nix+76 pkgs/top-level/all-packages.nix+2
pkgs/applications/misc/minigalaxy/default.nixnew file+76
@@ -0,0 +1,76 @@
1+{ lib
2+, fetchFromGitHub
3+, docutils
4+, gettext
5+, glibcLocales
6+, glib-networking
7+, gobject-introspection
8+, gtk3
9+, python3
10+, python3Packages
11+, steam-run-native
12+, unzip
13+, webkitgtk
14+, wrapGAppsHook
15+}:
16+
17+python3Packages.buildPythonApplication rec {
18+ pname = "minigalaxy";
19+ version = "1.1.0";
20+
21+ src = fetchFromGitHub {
22+ owner = "sharkwouter";
23+ repo = pname;
24+ rev = version;
25+ sha256 = "sha256-BbtwLuG5TH/+06Ez8+mwSAjG1IWg9/3uxzjmgPHczAw=";
26+ };
27+
28+ checkPhase = ''
29+ runHook preCheck
30+ env HOME=$PWD LC_ALL=en_US.UTF-8 pytest
31+ runHook postCheck
32+ '';
33+
34+ nativeBuildInputs = [
35+ gettext
36+ wrapGAppsHook
37+ ];
38+
39+ buildInputs = [
40+ glib-networking
41+ gobject-introspection
42+ gtk3
43+ ];
44+
45+ checkInputs = with python3Packages; [
46+ glibcLocales
47+ pytest
48+ tox
49+ ];
50+
51+ pythonPath = [
52+ docutils
53+ python3.pkgs.pygobject3
54+ python3.pkgs.requests
55+ python3.pkgs.setuptools
56+ python3.pkgs.simplejson
57+ steam-run-native
58+ unzip
59+ webkitgtk
60+ ];
61+
62+ # Run Linux games using the Steam Runtime by using steam-run in the wrapper
63+ postFixup = ''
64+ sed -e 's#exec -a "$0"#exec -a "$0" ${steam-run-native}/bin/steam-run#' -i $out/bin/minigalaxy
65+ '';
66+
67+ meta = with lib; {
68+ homepage = "https://sharkwouter.github.io/minigalaxy/";
69+ changelog = "https://github.com/sharkwouter/minigalaxy/blob/${version}/CHANGELOG.md";
70+ downloadPage = "https://github.com/sharkwouter/minigalaxy/releases";
71+ description = "A simple GOG client for Linux";
72+ license = licenses.gpl3;
73+ maintainers = with maintainers; [ srapenne ];
74+ platforms = platforms.linux;
75+ };
76+}
pkgs/top-level/all-packages.nix+2
@@ -26949,6 +26949,8 @@ with pkgs;
2694926949
2695026950 minicom = callPackage ../tools/misc/minicom { };
2695126951
26952+ minigalaxy = callPackage ../applications/misc/minigalaxy { };
26953+
2695226954 minimodem = callPackage ../applications/radio/minimodem { };
2695326955
2695426956 minidjvu = callPackage ../applications/graphics/minidjvu { };