blob: 6ddef51e3e6d80573043609fab0c783624c16314 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
{ lib
, fetchFromGitHub
, glibcLocales
, glib-networking
, gobject-introspection
, gtk3
, libnotify
, python3Packages
, steam-run
, substituteAll
, unzip
, webkitgtk
, wrapGAppsHook3
}:
python3Packages.buildPythonApplication rec {
pname = "minigalaxy";
version = "1.3.0";
src = fetchFromGitHub {
owner = "sharkwouter";
repo = "minigalaxy";
rev = "refs/tags/${version}";
hash = "sha256-CMPBKnNrcjHVpsbBjY97FiygEJNG9jKHR/LoVMfuxG4=";
};
patches = [
(substituteAll {
src = ./inject-launcher-steam-run.diff;
steamrun = lib.getExe steam-run;
})
];
postPatch = ''
substituteInPlace minigalaxy/installer.py \
--replace-fail '"unzip"' "\"${lib.getExe unzip}\"" \
--replace-fail "'unzip'" "\"${lib.getExe unzip}\""
'';
nativeBuildInputs = [
wrapGAppsHook3
gobject-introspection
];
buildInputs = [
glib-networking
gtk3
libnotify
];
nativeCheckInputs = with python3Packages; [
glibcLocales
pytestCheckHook
simplejson
];
preCheck = ''
export HOME=$(mktemp -d)
'';
pythonPath = [
python3Packages.pygobject3
python3Packages.requests
webkitgtk
];
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
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 = "Simple GOG client for Linux";
license = licenses.gpl3;
maintainers = with maintainers; [ ];
platforms = platforms.linux;
};
}
|