26 stdenv.mkDerivation (finalAttrs: {
27 inherit pname version meta;
30 url = "https://github.com/Foundry376/Mailspring/releases/download/${finalAttrs.version}/mailspring-${finalAttrs.version}-amd64.deb";
31 hash = "sha256-2F5k8zRRI6x1EQ0k8wvIq1Q3Lnrn2ROp/Mq+H7Vqzlc=";
57 runtimeDependencies = [
76 mkdir -p $out/{bin,lib}
77 cp -ar ./usr/share $out
79 substituteInPlace $out/share/mailspring/resources/app.asar.unpacked/mailsync \
80 --replace-fail dirname ${coreutils}/bin/dirname
82 ln -s $out/share/mailspring/mailspring $out/bin/mailspring
83 ln -s ${lib.getLib openssl}/lib/libcrypto.so $out/lib/libcrypto.so.1.0.0
88 postFixup = /* sh */ ''
89 substituteInPlace $out/share/applications/Mailspring.desktop \
90 --replace-fail Exec=mailspring Exec=$out/bin/mailspring