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