Merge pull request #119515 from doronbehar/pkg/mailspring/update

mailspring: 1.8.0 -> 1.9.0
This commit is contained in:
Sandro 2021-04-16 21:27:08 +02:00 committed by GitHub
commit 79e5c780ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,11 +18,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "mailspring"; pname = "mailspring";
version = "1.8.0"; version = "1.9.0";
src = fetchurl { src = fetchurl {
url = "https://github.com/Foundry376/Mailspring/releases/download/${version}/mailspring-${version}-amd64.deb"; url = "https://github.com/Foundry376/Mailspring/releases/download/${version}/mailspring-${version}-amd64.deb";
sha256 = "BtzYcHN87qH7s3GiBrsDfmuy9v2xdhCeSShu8+T9T3E="; sha256 = "ISwNFR8M377+J7WoG9MlblF8r5yRTgCxEGszZCjqW/k=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -34,9 +34,7 @@ stdenv.mkDerivation rec {
alsaLib alsaLib
db db
glib glib
# We don't know why with trackerSupport the executable fail to launch, See: gtk3
# https://github.com/NixOS/nixpkgs/issues/106732
(gtk3.override {trackerSupport = false; })
libkrb5 libkrb5
libsecret libsecret
nss nss
@ -52,10 +50,16 @@ stdenv.mkDerivation rec {
]; ];
unpackPhase = '' unpackPhase = ''
runHook preUnpack
dpkg -x $src . dpkg -x $src .
runHook postUnpack
''; '';
installPhase = '' installPhase = ''
runHook preInstall
mkdir -p $out/{bin,lib} mkdir -p $out/{bin,lib}
cp -ar ./usr/share $out cp -ar ./usr/share $out
@ -64,11 +68,13 @@ stdenv.mkDerivation rec {
ln -s $out/share/mailspring/mailspring $out/bin/mailspring ln -s $out/share/mailspring/mailspring $out/bin/mailspring
ln -s ${openssl.out}/lib/libcrypto.so $out/lib/libcrypto.so.1.0.0 ln -s ${openssl.out}/lib/libcrypto.so $out/lib/libcrypto.so.1.0.0
runHook postInstall
''; '';
postFixup = /* sh */ '' postFixup = /* sh */ ''
substituteInPlace $out/share/applications/mailspring.desktop \ substituteInPlace $out/share/applications/Mailspring.desktop \
--replace /usr/bin $out/bin --replace Exec=mailspring Exec=$out/bin/mailspring
''; '';
meta = with lib; { meta = with lib; {
@ -77,8 +83,8 @@ stdenv.mkDerivation rec {
Mailspring is an open-source mail client forked from Nylas Mail and built with Electron. Mailspring is an open-source mail client forked from Nylas Mail and built with Electron.
Mailspring's sync engine runs locally, but its source is not open. Mailspring's sync engine runs locally, but its source is not open.
''; '';
license = licenses.unfree; license = licenses.gpl3Plus;
maintainers = with maintainers; [ toschmidt ]; maintainers = with maintainers; [ toschmidt doronbehar ];
homepage = "https://getmailspring.com"; homepage = "https://getmailspring.com";
downloadPage = "https://github.com/Foundry376/Mailspring"; downloadPage = "https://github.com/Foundry376/Mailspring";
platforms = platforms.x86_64; platforms = platforms.x86_64;