2023-11-19 19:23:18 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3Packages
|
|
|
|
, qt6
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "zapzap";
|
2024-04-29 19:36:28 +02:00
|
|
|
version = "5.3.1";
|
2023-11-19 19:23:18 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zapzap-linux";
|
|
|
|
repo = "zapzap";
|
2024-02-25 22:50:21 +01:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-29 19:36:28 +02:00
|
|
|
hash = "sha256-RDkuYR74vjXnPgiqDCeY6y9yQNvAWAaQfWmfs7xic9E=";
|
2023-11-19 19:23:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
|
|
setuptools
|
|
|
|
qt6.wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qt6.qtwayland
|
|
|
|
qt6.qtsvg
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
dbus-python
|
|
|
|
pyqt6
|
|
|
|
pyqt6-webengine
|
|
|
|
pyqt6-sip
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm555 share/applications/com.rtosta.zapzap.desktop -t $out/share/applications/
|
2023-12-17 21:31:00 +01:00
|
|
|
install -Dm555 share/icons/com.rtosta.zapzap.svg -t $out/share/icons/hicolor/scalable/apps/
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
2023-11-19 19:23:18 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "WhatsApp desktop application for Linux";
|
|
|
|
homepage = "https://zapzap-linux.github.io/";
|
|
|
|
mainProgram = "zapzap";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
changelog = "https://github.com/zapzap-linux/zapzap/releases/tag/${version}";
|
|
|
|
maintainers = [ maintainers.eymeric ];
|
|
|
|
};
|
|
|
|
}
|