1{ lib, stdenv, fetchurl, openssl }:
2
3stdenv.mkDerivation rec {
4 pname = "mailsend";
5 version = "1.19";
6
7 src = fetchurl {
8 url = "https://github.com/muquit/mailsend/archive/${version}.tar.gz";
9 sha256 = "sha256-Vl72vibFjvdQZcVRnq6N1VuuMUKShhlpayjSQrc0k/c=";
10 };
11
12 buildInputs = [
13 openssl
14 ];
15 configureFlags = [
16 "--with-openssl=${openssl.dev}"
17 ];
18
19 patches = [
20 (fetchurl {
21 url = "https://github.com/muquit/mailsend/commit/960df6d7a11eef90128dc2ae660866b27f0e4336.patch";
22 sha256 = "0vz373zcfl19inflybfjwshcq06rvhx0i5g0f4b021cxfhyb1sm0";
23 })
24 ];
25 meta = with lib; {
26 description = "CLI email sending tool";
27 license = licenses.bsd3;
28 maintainers = with maintainers; [ raskin ];
29 platforms = platforms.linux;
30 homepage = "https://github.com/muquit/mailsend";
31 downloadPage = "https://github.com/muquit/mailsend/releases";
32 };
33}