Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

79 lines
1.7 KiB
Nix

{
lib,
fetchFromGitHub,
python3,
qtbase,
qtsvg,
qtwayland,
nixosTests,
wrapQtAppsHook,
}:
python3.pkgs.buildPythonApplication rec {
pname = "maestral-qt";
version = "1.9.4";
pyproject = true;
disabled = python3.pythonOlder "3.7";
src = fetchFromGitHub {
owner = "SamSchott";
repo = "maestral-qt";
tag = "v${version}";
hash = "sha256-VkJOKKYnoXux3WjD1JwINGWwv1SMIXfidyV2ITE7dJc=";
};
build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [
click
markdown2
maestral
packaging
pyqt6
];
buildInputs = [
qtwayland
qtbase
qtsvg # Needed for the systray icon
];
nativeBuildInputs = [ wrapQtAppsHook ];
dontWrapQtApps = true;
makeWrapperArgs = with python3.pkgs; [
# Firstly, add all necessary QT variables
"\${qtWrapperArgs[@]}"
# Add the installed directories to the python path so the daemon can find them
"--prefix PYTHONPATH : ${makePythonPath (requiredPythonModules maestral.propagatedBuildInputs)}"
"--prefix PYTHONPATH : ${makePythonPath [ maestral ]}"
];
postInstall = ''
install -Dm444 -t $out/share/icons/hicolor/512x512/apps src/maestral_qt/resources/maestral.png
'';
# no tests
doCheck = false;
pythonImportsCheck = [ "maestral_qt" ];
passthru.tests.maestral = nixosTests.maestral;
meta = {
description = "GUI front-end for maestral (an open-source Dropbox client) for Linux";
homepage = "https://maestral.app";
changelog = "https://github.com/samschott/maestral/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
peterhoeg
sfrijters
];
platforms = lib.platforms.linux;
mainProgram = "maestral_qt";
};
}