09af15654f
The kde-5 stuff still didn't merge well. I hand-fixed what I saw, but there may be more problems.
35 lines
1.1 KiB
Nix
35 lines
1.1 KiB
Nix
{ stdenv, fetchgit, pythonPackages, gnupg1orig, makeWrapper, openssl }:
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
|
name = "mailpile-${version}";
|
|
version = "0.4.1";
|
|
|
|
src = fetchgit {
|
|
url = "git://github.com/pagekite/Mailpile";
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "0h84cc9kwb0m4admqjkpg4pllxlh095rmzvrql45kz71fpnxs780";
|
|
};
|
|
|
|
patchPhase = ''
|
|
substituteInPlace setup.py --replace "data_files.append((dir" "data_files.append(('lib/${pythonPackages.python.libPrefix}/site-packages/' + dir"
|
|
'';
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
|
makeWrapper pillow jinja2 spambayes pythonPackages.lxml
|
|
python.modules.readline pgpdump gnupg1orig
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/mailpile \
|
|
--prefix PATH ":" "${gnupg1orig}/bin:${openssl.bin}/bin"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A modern, fast web-mail client with user-friendly encryption and privacy features";
|
|
homepage = https://www.mailpile.is/;
|
|
license = [ licenses.asl20 licenses.agpl3 ];
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.iElectric ];
|
|
};
|
|
}
|