fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / by-name / ma / mailsend / package.nix
blobde46e1ea12144b626f9ef328cde512d1b0694366
2   lib,
3   stdenv,
4   fetchurl,
5   fetchpatch,
6   openssl,
7 }:
9 stdenv.mkDerivation rec {
10   pname = "mailsend";
11   version = "1.19";
13   src = fetchurl {
14     url = "https://github.com/muquit/mailsend/archive/${version}.tar.gz";
15     sha256 = "sha256-Vl72vibFjvdQZcVRnq6N1VuuMUKShhlpayjSQrc0k/c=";
16   };
18   buildInputs = [
19     openssl
20   ];
21   configureFlags = [
22     "--with-openssl=${openssl.dev}"
23   ];
25   patches = [
26     (fetchurl {
27       url = "https://github.com/muquit/mailsend/commit/960df6d7a11eef90128dc2ae660866b27f0e4336.patch";
28       sha256 = "0vz373zcfl19inflybfjwshcq06rvhx0i5g0f4b021cxfhyb1sm0";
29     })
30     # Pull fix pending upstream inclusion for parallel build failures:
31     #   https://github.com/muquit/mailsend/pull/165
32     (fetchpatch {
33       name = "parallel-install.patch";
34       url = "https://github.com/muquit/mailsend/commit/acd4ebedbce0e4af3c7b6632f905f73e642ca38c.patch";
35       hash = "sha256-p8tNnkU6cMopuP63kVtRbD9aenhzL1EAXlvvFh4fucE=";
36     })
37   ];
39   enableParallelBuilding = true;
41   meta = with lib; {
42     description = "CLI email sending tool";
43     license = licenses.bsd3;
44     maintainers = with maintainers; [ raskin ];
45     platforms = platforms.linux;
46     homepage = "https://github.com/muquit/mailsend";
47     downloadPage = "https://github.com/muquit/mailsend/releases";
48     mainProgram = "mailsend";
49   };