nixpkgs/pkgs/by-name/bu/buttermanager/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.2 KiB
Nix
Raw Normal View History

2023-12-26 17:03:52 +01:00
{ lib
, fetchFromGitHub
, python3Packages
, wrapGAppsHook3
2023-12-26 17:03:52 +01:00
, 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
2023-12-26 17:03:52 +01:00
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";
};
}