linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / tools / networking / mailsend / default.nix
blob9856634116eb259908b3d548f76833f4aa130b14
1 {lib, stdenv, fetchurl, openssl}:
2 let
3   s = # Generated upstream information
4   rec {
5     baseName="mailsend";
6     version="1.19";
7     name="${baseName}-${version}";
8     hash="1xwk6jvl5li8ddlik1lj88qswnyminp9wlf5cm8gg3n54szgcpjn";
9     url="https://github.com/muquit/mailsend/archive/1.19.tar.gz";
10     sha256="1xwk6jvl5li8ddlik1lj88qswnyminp9wlf5cm8gg3n54szgcpjn";
11   };
12   buildInputs = [
13     openssl
14   ];
16 stdenv.mkDerivation {
17   inherit (s) name version;
18   inherit buildInputs;
19   src = fetchurl {
20     inherit (s) url sha256;
21   };
22   configureFlags = [
23     "--with-openssl=${openssl.dev}"
24   ];
26   patches = [
27     (fetchurl {
28       url = "https://github.com/muquit/mailsend/commit/960df6d7a11eef90128dc2ae660866b27f0e4336.patch";
29       sha256 = "0vz373zcfl19inflybfjwshcq06rvhx0i5g0f4b021cxfhyb1sm0";
30     })
31   ];
32   meta = {
33     inherit (s) version;
34     description = "CLI email sending tool";
35     license = lib.licenses.bsd3 ;
36     maintainers = [lib.maintainers.raskin];
37     platforms = lib.platforms.linux;
38     homepage = "https://github.com/muquit/mailsend";
39     downloadPage = "https://github.com/muquit/mailsend/releases";
40   };