gkraken: init at 1.1.6

OPNA2608 3d45f134 48eba3e3

Changed files
+88
pkgs
tools
system
gkraken
top-level
+86
pkgs/tools/system/gkraken/default.nix
···
+
{ python3Packages
+
, lib
+
, fetchFromGitLab
+
, meson
+
, pkg-config
+
, glib
+
, ninja
+
, desktop-file-utils
+
, gobject-introspection
+
, gtk3
+
, libnotify
+
, dbus
+
, wrapGAppsHook
+
}:
+
+
python3Packages.buildPythonApplication rec {
+
pname = "gkraken";
+
version = "1.1.6";
+
+
src = fetchFromGitLab {
+
owner = "leinardi";
+
repo = "gkraken";
+
rev = version;
+
sha256 = "085zz6m7c3xzsrvkw50gbbz8l9fmswxj2hjya2f52dvgs8daijdy";
+
};
+
+
format = "other";
+
+
postPatch = ''
+
patchShebangs scripts/meson_post_install.py
+
'';
+
+
nativeBuildInputs = [
+
meson
+
pkg-config
+
glib
+
ninja
+
gtk3
+
desktop-file-utils
+
wrapGAppsHook
+
];
+
+
buildInputs = [
+
gobject-introspection
+
glib
+
gtk3
+
libnotify
+
dbus
+
];
+
+
propagatedBuildInputs = with python3Packages; [
+
pygobject3
+
peewee
+
rx
+
injector
+
liquidctl
+
pyxdg
+
requests
+
matplotlib
+
dbus-python
+
];
+
+
dontWrapGApps = true;
+
+
# Extract udev rules from python code
+
postInstall = ''
+
mkdir -p $out/lib/udev/rules.d
+
sed -e '/\s*\(from\|@singleton\|@inject\)/d' $src/gkraken/interactor/udev_interactor.py > udev_interactor.py
+
python -c 'from udev_interactor import _UDEV_RULE; print(_UDEV_RULE)' > $out/lib/udev/rules.d/60-gkraken.rules
+
'';
+
+
preFixup = ''
+
makeWrapperArgs+=(
+
"''${gappsWrapperArgs[@]}"
+
)
+
'';
+
+
meta = with lib; {
+
description = "GUI that allows to control the cooling (fan and/or pump profiles) of NZXT Kraken AIO liquid coolers from Linux";
+
homepage = "https://gitlab.com/leinardi/gkraken";
+
changelog = "https://gitlab.com/leinardi/gkraken/-/tags/${version}";
+
license = licenses.gpl3Plus;
+
maintainers = with maintainers; [ OPNA2608 ];
+
platforms = platforms.linux;
+
};
+
}
+2
pkgs/top-level/all-packages.nix
···
gbenchmark = callPackage ../development/libraries/gbenchmark {};
+
gkraken = callPackage ../tools/system/gkraken { };
+
gtkdatabox = callPackage ../development/libraries/gtkdatabox {};
gtklick = callPackage ../applications/audio/gtklick {};