nixpkgs/pkgs/by-name/bu/buttermanager/package.nix
Jan Tojnar eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
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)
2024-04-27 02:23:22 +02:00

52 lines
1.2 KiB
Nix

{ lib
, fetchFromGitHub
, python3Packages
, wrapGAppsHook3
, qt5
}:
python3Packages.buildPythonApplication rec {
pname = "buttermanager";
version = "2.5.1";
pyproject = true;
src = fetchFromGitHub {
owner = "egara";
repo = "buttermanager";
rev = version;
hash = "sha256-MLYJt7OMYlTFk8FCAlZJ1RGlFFXKfeAthWGp4JN+PfY=";
};
propagatedBuildInputs = with python3Packages; [
pyqt5
pyyaml
sip
tkinter
];
nativeBuildInputs = [
wrapGAppsHook3
qt5.wrapQtAppsHook
];
dontWrapQtApps = true;
dontWrapGApps = true;
makeWrapperArgs = [ "\${qtWrapperArgs[@]}" "\${gappsWrapperArgs[@]}"];
postInstall = ''
substituteInPlace packaging/buttermanager.desktop \
--replace-fail /opt/buttermanager/gui/buttermanager.svg buttermanager
install -Dm444 packaging/buttermanager.desktop -t $out/share/applications
install -Dm444 packaging/buttermanager.svg -t $out/share/icons/hicolor/scalable/apps
'';
meta = with lib; {
description = "Btrfs tool for managing snapshots, balancing filesystems and upgrading the system safetly";
homepage = "https://github.com/egara/buttermanager";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ t4ccer ];
mainProgram = "buttermanager";
};
}