2023-12-26 17:03:52 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3Packages
|
2024-04-26 22:24:03 +02:00
|
|
|
, 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 = [
|
2024-04-26 22:24:03 +02:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|