mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
87 lines
1.7 KiB
Nix
87 lines
1.7 KiB
Nix
{ python3Packages
|
|
, lib
|
|
, fetchFromGitLab
|
|
, meson
|
|
, pkg-config
|
|
, glib
|
|
, ninja
|
|
, desktop-file-utils
|
|
, gobject-introspection
|
|
, gtk3
|
|
, libnotify
|
|
, dbus
|
|
, wrapGAppsHook3
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "gkraken";
|
|
version = "1.2.0";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "leinardi";
|
|
repo = "gkraken";
|
|
rev = version;
|
|
sha256 = "0hxlh0319rl28iba02917z3n6d5cq2qcgpj2ng31bkjjhlvvfm2g";
|
|
};
|
|
|
|
format = "other";
|
|
|
|
postPatch = ''
|
|
patchShebangs scripts/meson_post_install.py
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
pkg-config
|
|
gobject-introspection
|
|
glib
|
|
ninja
|
|
gtk3
|
|
desktop-file-utils
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
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;
|
|
mainProgram = "gkraken";
|
|
};
|
|
}
|