git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #151136 from rapenne-s/import_minigalaxy

minigalaxy: init at 1.1.0

commitb47ba6b62bd9a7723962b6b78f9fd52e074dc52f author0x4A6F <0x4A6F@users.noreply.github.com> dateThu 6 Jan 2022, 14:04 (5 years ago) parent9c8cfcd74ae0ea
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
@@ -27087,6 +27087,8 @@ with pkgs;
2708727087
2708827088 minicom = callPackage ../tools/misc/minicom { };
2708927089
27090+ minigalaxy = callPackage ../applications/misc/minigalaxy { };
27091+
2709027092 minimodem = callPackage ../applications/radio/minimodem { };
2709127093
2709227094 minidjvu = callPackage ../applications/graphics/minidjvu { };