gkraken: init at 1.1.6

OPNA2608 3d45f134 48eba3e3

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