mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
53 lines
1.4 KiB
Nix
53 lines
1.4 KiB
Nix
{ lib, stdenv, fetchFromGitHub, python2Packages, gnupg1orig, openssl, git }:
|
|
|
|
python2Packages.buildPythonApplication rec {
|
|
pname = "mailpile";
|
|
version = "1.0.0rc2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mailpile";
|
|
repo = "Mailpile";
|
|
rev = version;
|
|
sha256 = "1z5psh00fjr8gnl4yjcl4m9ywfj24y1ffa2rfb5q8hq4ksjblbdj";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs scripts
|
|
'';
|
|
|
|
nativeBuildInputs = with python2Packages; [ pbr git ];
|
|
PBR_VERSION=version;
|
|
|
|
propagatedBuildInputs = with python2Packages; [
|
|
appdirs
|
|
cryptography
|
|
fasteners
|
|
gnupg1orig
|
|
jinja2
|
|
pgpdump
|
|
pillow
|
|
python2Packages.lxml
|
|
spambayes
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/mailpile \
|
|
--prefix PATH ":" "${stdenv.lib.makeBinPath [ gnupg1orig openssl ]}" \
|
|
--set-default MAILPILE_SHARED "$out/share/mailpile"
|
|
'';
|
|
|
|
# No tests were found
|
|
doCheck = false;
|
|
|
|
meta = with 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.domenkozar ];
|
|
knownVulnerabilities = [
|
|
"Numerous and uncounted, upstream has requested we not package it. See more: https://github.com/NixOS/nixpkgs/pull/23058#issuecomment-283515104"
|
|
];
|
|
};
|
|
}
|