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
46 lines
1.3 KiB
Nix
46 lines
1.3 KiB
Nix
{
|
|
appimageTools,
|
|
lib,
|
|
fetchurl,
|
|
nix-update-script,
|
|
}:
|
|
|
|
let
|
|
pname = "electron-mail";
|
|
version = "5.3.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/vladimiry/ElectronMail/releases/download/v${version}/electron-mail-${version}-linux-x86_64.AppImage";
|
|
hash = "sha256-i1oJ/DNGspE7ELuN7MI0e8/69SZwirqahBa7Jf5kP7s=";
|
|
};
|
|
|
|
appimageContents = appimageTools.extract { inherit pname version src; };
|
|
in
|
|
appimageTools.wrapType2 {
|
|
inherit pname version src;
|
|
|
|
extraInstallCommands = ''
|
|
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
|
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
|
--replace-fail 'Exec=AppRun' 'Exec=${pname}'
|
|
cp -r ${appimageContents}/usr/share/icons $out/share
|
|
'';
|
|
|
|
extraPkgs = pkgs: [
|
|
pkgs.libsecret
|
|
pkgs.libappindicator-gtk3
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Unofficial Election-based ProtonMail desktop client";
|
|
mainProgram = "electron-mail";
|
|
homepage = "https://github.com/vladimiry/ElectronMail";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = [ lib.maintainers.princemachiavelli ];
|
|
platforms = [ "x86_64-linux" ];
|
|
changelog = "https://github.com/vladimiry/ElectronMail/releases/tag/v${version}";
|
|
};
|
|
}
|