Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8caac93be729
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e01b23fb9aaa
Choose a head ref
  • 3 commits
  • 3 files changed
  • 2 contributors

Commits on Apr 29, 2020

  1. maintainers: add toschmidt

    toschmidt committed Apr 29, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    toschmidt Tobias Schmidt
    Copy the full SHA
    677df72 View commit details

Commits on Jun 4, 2020

  1. mailspring: init at 1.7.8

    toschmidt committed Jun 4, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    toschmidt Tobias Schmidt
    Copy the full SHA
    939f72a View commit details

Commits on Jul 7, 2020

  1. Merge pull request #85492 from toschmidt/mailspring

    mailspring: init at 1.7.8
    danieldk authored Jul 7, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e01b23f View commit details
Showing with 92 additions and 0 deletions.
  1. +6 −0 maintainers/maintainer-list.nix
  2. +84 −0 pkgs/applications/networking/mailreaders/mailspring/default.nix
  3. +2 −0 pkgs/top-level/all-packages.nix
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -8134,6 +8134,12 @@
githubId = 1486805;
name = "Toon Nolten";
};
toschmidt = {
email = "tobias.schmidt@in.tum.de";
github = "toschmidt";
githubId = 27586264;
name = "Tobias Schmidt";
};
travisbhartwell = {
email = "nafai@travishartwell.net";
github = "travisbhartwell";
84 changes: 84 additions & 0 deletions pkgs/applications/networking/mailreaders/mailspring/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{ stdenv
, fetchurl
, autoPatchelfHook
, alsaLib
, coreutils
, db
, dpkg
, glib
, gtk3
, libkrb5
, libsecret
, nss
, openssl
, udev
, xorg
}:

stdenv.mkDerivation rec {
pname = "mailspring";
version = "1.7.8";

src = fetchurl {
url = "https://github.com/Foundry376/Mailspring/releases/download/${version}/mailspring-${version}-amd64.deb";
sha256 = "207fbf813b6da018a5b848e5dc1194b5996daab39adbd873b2cecb0565c105ce";
};

nativeBuildInputs = [
autoPatchelfHook
dpkg
];

buildInputs = [
alsaLib
db
glib
gtk3
libkrb5
libsecret
nss
xorg.libxkbfile
xorg.libXScrnSaver
xorg.libXtst
];

runtimeDependencies = [
coreutils
openssl
udev.lib
];

unpackPhase = ''
dpkg -x $src .
'';

installPhase = ''
mkdir -p $out/{bin,lib}
cp -ar ./usr/share $out
substituteInPlace $out/share/mailspring/resources/app.asar.unpacked/mailsync \
--replace realpath ${coreutils}/bin/realpath \
--replace dirname ${coreutils}/bin/dirname
ln -s $out/share/mailspring/mailspring $out/bin/mailspring
ln -s ${openssl.out}/lib/libcrypto.so $out/lib/libcrypto.so.1.0.0
'';

postFixup = /* sh */ ''
substituteInPlace $out/share/applications/mailspring.desktop \
--replace /usr/bin $out/bin
'';

meta = with stdenv.lib; {
description = "A beautiful, fast and maintained fork of Nylas Mail by one of the original authors";
longDescription = ''
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.
'';
license = licenses.unfree;
maintainers = with maintainers; [ toschmidt ];
homepage = "https://getmailspring.com";
downloadPage = "https://github.com/Foundry376/Mailspring";
platforms = platforms.x86_64;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -21190,6 +21190,8 @@ in

normalize = callPackage ../applications/audio/normalize { };

mailspring = callPackage ../applications/networking/mailreaders/mailspring {};

mm = callPackage ../applications/networking/instant-messengers/mm { };

mm-common = callPackage ../development/libraries/mm-common { };