mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
commit
0d8a9b0e11
2 changed files with 71 additions and 0 deletions
|
@ -5735,6 +5735,12 @@
|
|||
githubId = 25955146;
|
||||
name = "eyJhb";
|
||||
};
|
||||
eymeric = {
|
||||
name = "Eymeric Dechelette";
|
||||
email = "hatchchcien@protonmail.com";
|
||||
github = "hatch01";
|
||||
githubId = 42416805;
|
||||
};
|
||||
f2k1de = {
|
||||
name = "f2k1de";
|
||||
email = "hi@f2k1.de";
|
||||
|
|
65
pkgs/by-name/za/zapzap/package.nix
Normal file
65
pkgs/by-name/za/zapzap/package.nix
Normal file
|
@ -0,0 +1,65 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, python3Packages
|
||||
, qt6
|
||||
, fetchpatch
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "zapzap";
|
||||
version = "4.5.5.2";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zapzap-linux";
|
||||
repo = "zapzap";
|
||||
rev = version;
|
||||
hash = "sha256-8IeFGTI+5kbeFGqH5DpHCY8pqzGhE48hPCEIKIe7jAM=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# fixes that the tray icon was not installed
|
||||
(fetchpatch {
|
||||
url = "https://github.com/zapzap-linux/zapzap/pull/25/commits/4107b019555492e2c2692dd4c40553503047e6a8.patch";
|
||||
hash = "sha256-NQPGPXYFhVwsPXopEELG1n/f8yUj/74OFE1hTyt93Ng=";
|
||||
})
|
||||
];
|
||||
|
||||
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/
|
||||
install -Dm555 share/icons/com.rtosta.zapzap.svg -t $out/share/icons/hicolor/scalable/
|
||||
'';
|
||||
|
||||
# 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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue