tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
gkraken: init at 1.1.6
OPNA2608
4 years ago
3d45f134
48eba3e3
+88
2 changed files
expand all
collapse all
unified
split
pkgs
tools
system
gkraken
default.nix
top-level
all-packages.nix
+86
pkgs/tools/system/gkraken/default.nix
···
1
1
+
{ python3Packages
2
2
+
, lib
3
3
+
, fetchFromGitLab
4
4
+
, meson
5
5
+
, pkg-config
6
6
+
, glib
7
7
+
, ninja
8
8
+
, desktop-file-utils
9
9
+
, gobject-introspection
10
10
+
, gtk3
11
11
+
, libnotify
12
12
+
, dbus
13
13
+
, wrapGAppsHook
14
14
+
}:
15
15
+
16
16
+
python3Packages.buildPythonApplication rec {
17
17
+
pname = "gkraken";
18
18
+
version = "1.1.6";
19
19
+
20
20
+
src = fetchFromGitLab {
21
21
+
owner = "leinardi";
22
22
+
repo = "gkraken";
23
23
+
rev = version;
24
24
+
sha256 = "085zz6m7c3xzsrvkw50gbbz8l9fmswxj2hjya2f52dvgs8daijdy";
25
25
+
};
26
26
+
27
27
+
format = "other";
28
28
+
29
29
+
postPatch = ''
30
30
+
patchShebangs scripts/meson_post_install.py
31
31
+
'';
32
32
+
33
33
+
nativeBuildInputs = [
34
34
+
meson
35
35
+
pkg-config
36
36
+
glib
37
37
+
ninja
38
38
+
gtk3
39
39
+
desktop-file-utils
40
40
+
wrapGAppsHook
41
41
+
];
42
42
+
43
43
+
buildInputs = [
44
44
+
gobject-introspection
45
45
+
glib
46
46
+
gtk3
47
47
+
libnotify
48
48
+
dbus
49
49
+
];
50
50
+
51
51
+
propagatedBuildInputs = with python3Packages; [
52
52
+
pygobject3
53
53
+
peewee
54
54
+
rx
55
55
+
injector
56
56
+
liquidctl
57
57
+
pyxdg
58
58
+
requests
59
59
+
matplotlib
60
60
+
dbus-python
61
61
+
];
62
62
+
63
63
+
dontWrapGApps = true;
64
64
+
65
65
+
# Extract udev rules from python code
66
66
+
postInstall = ''
67
67
+
mkdir -p $out/lib/udev/rules.d
68
68
+
sed -e '/\s*\(from\|@singleton\|@inject\)/d' $src/gkraken/interactor/udev_interactor.py > udev_interactor.py
69
69
+
python -c 'from udev_interactor import _UDEV_RULE; print(_UDEV_RULE)' > $out/lib/udev/rules.d/60-gkraken.rules
70
70
+
'';
71
71
+
72
72
+
preFixup = ''
73
73
+
makeWrapperArgs+=(
74
74
+
"''${gappsWrapperArgs[@]}"
75
75
+
)
76
76
+
'';
77
77
+
78
78
+
meta = with lib; {
79
79
+
description = "GUI that allows to control the cooling (fan and/or pump profiles) of NZXT Kraken AIO liquid coolers from Linux";
80
80
+
homepage = "https://gitlab.com/leinardi/gkraken";
81
81
+
changelog = "https://gitlab.com/leinardi/gkraken/-/tags/${version}";
82
82
+
license = licenses.gpl3Plus;
83
83
+
maintainers = with maintainers; [ OPNA2608 ];
84
84
+
platforms = platforms.linux;
85
85
+
};
86
86
+
}
+2
pkgs/top-level/all-packages.nix
···
5853
5853
5854
5854
gbenchmark = callPackage ../development/libraries/gbenchmark {};
5855
5855
5856
5856
+
gkraken = callPackage ../tools/system/gkraken { };
5857
5857
+
5856
5858
gtkdatabox = callPackage ../development/libraries/gtkdatabox {};
5857
5859
5858
5860
gtklick = callPackage ../applications/audio/gtklick {};