diff options
author | Josh Hoffer <jhoffer@sansorgan.es> | 2021-06-09 16:46:17 -0600 |
---|---|---|
committer | Josh Hoffer <jhoffer@sansorgan.es> | 2021-06-10 19:54:18 -0600 |
commit | 11ee0cb222350d9a2ebe0071d6e7628f7ba27866 (patch) | |
tree | 92c3013c316c46910c6b99897ec0ba7e2f21a342 /pkgs/applications/networking/mailreaders/electron-mail | |
parent | 1fdddce7f270d627b33388b7ea0d481b1600dfbb (diff) | |
download | nixpkgs-11ee0cb222350d9a2ebe0071d6e7628f7ba27866.tar nixpkgs-11ee0cb222350d9a2ebe0071d6e7628f7ba27866.tar.gz nixpkgs-11ee0cb222350d9a2ebe0071d6e7628f7ba27866.tar.bz2 nixpkgs-11ee0cb222350d9a2ebe0071d6e7628f7ba27866.tar.lz nixpkgs-11ee0cb222350d9a2ebe0071d6e7628f7ba27866.tar.xz nixpkgs-11ee0cb222350d9a2ebe0071d6e7628f7ba27866.tar.zst nixpkgs-11ee0cb222350d9a2ebe0071d6e7628f7ba27866.zip |
electron-mail: init at 4.12.2
Diffstat (limited to 'pkgs/applications/networking/mailreaders/electron-mail')
-rw-r--r-- | pkgs/applications/networking/mailreaders/electron-mail/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/applications/networking/mailreaders/electron-mail/default.nix b/pkgs/applications/networking/mailreaders/electron-mail/default.nix new file mode 100644 index 00000000000..1f7d663cf8e --- /dev/null +++ b/pkgs/applications/networking/mailreaders/electron-mail/default.nix @@ -0,0 +1,33 @@ +{ appimageTools, lib, fetchurl }: + +let + pname = "electron-mail"; + version = "4.12.2"; + name = "ElectronMail-${version}"; + + src = fetchurl { + url = "https://github.com/vladimiry/ElectronMail/releases/download/v${version}/electron-mail-${version}-linux-x86_64.AppImage"; + sha256 = "D+0qoIb0EwUVbgKOiKQpqoLDgm8l/UKDWm/BjhW4MYU="; + }; + + appimageContents = appimageTools.extract { inherit name src; }; +in appimageTools.wrapType2 { + inherit name src; + + extraInstallCommands = '' + mv $out/bin/${name} $out/bin/${pname} + + install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications + substituteInPlace $out/share/applications/${pname}.desktop \ + --replace 'Exec=AppRun' 'Exec=${pname}' + cp -r ${appimageContents}/usr/share/icons $out/share + ''; + + meta = with lib; { + description = "ElectronMail is an Electron-based unofficial desktop client for ProtonMail"; + homepage = "https://github.com/vladimiry/ElectronMail"; + license = licenses.mit; + maintainers = [ maintainers.princemachiavelli ]; + platforms = [ "x86_64-linux" ]; + }; +} |