mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
mailsend: modernize
This commit is contained in:
parent
959878e0e0
commit
c97569906a
1 changed files with 23 additions and 12 deletions
|
@ -1,18 +1,21 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
fetchurl,
|
fetchFromGitHub,
|
||||||
fetchpatch,
|
fetchpatch,
|
||||||
openssl,
|
openssl,
|
||||||
|
versionCheckHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "mailsend";
|
pname = "mailsend";
|
||||||
version = "1.19";
|
version = "1.19";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/muquit/mailsend/archive/${version}.tar.gz";
|
owner = "muquit";
|
||||||
sha256 = "sha256-Vl72vibFjvdQZcVRnq6N1VuuMUKShhlpayjSQrc0k/c=";
|
repo = "mailsend";
|
||||||
|
tag = finalAttrs.version;
|
||||||
|
hash = "sha256-g1V4NrFlIz8oh7IS+cGWG6eje6kBGvPZS7Q131ESrXI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
@ -23,9 +26,11 @@ stdenv.mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
(fetchurl {
|
# OpenSSL 1.1 support for HMAC api
|
||||||
|
(fetchpatch {
|
||||||
|
name = "openssl-1-1-hmac.patch";
|
||||||
url = "https://github.com/muquit/mailsend/commit/960df6d7a11eef90128dc2ae660866b27f0e4336.patch";
|
url = "https://github.com/muquit/mailsend/commit/960df6d7a11eef90128dc2ae660866b27f0e4336.patch";
|
||||||
sha256 = "0vz373zcfl19inflybfjwshcq06rvhx0i5g0f4b021cxfhyb1sm0";
|
hash = "sha256-Gy4pZMYoUXcjMatw5BSk+IUKXjgpLCwPXtfC++WPKAM=";
|
||||||
})
|
})
|
||||||
# Pull fix pending upstream inclusion for parallel build failures:
|
# Pull fix pending upstream inclusion for parallel build failures:
|
||||||
# https://github.com/muquit/mailsend/pull/165
|
# https://github.com/muquit/mailsend/pull/165
|
||||||
|
@ -40,13 +45,19 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = with lib; {
|
nativeInstallCheckInputs = [
|
||||||
|
versionCheckHook
|
||||||
|
];
|
||||||
|
doInstallCheck = true;
|
||||||
|
versionCheckProgramArg = "-V";
|
||||||
|
|
||||||
|
meta = {
|
||||||
description = "CLI email sending tool";
|
description = "CLI email sending tool";
|
||||||
license = licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
maintainers = with maintainers; [ raskin ];
|
maintainers = with lib.maintainers; [ raskin ];
|
||||||
platforms = platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
homepage = "https://github.com/muquit/mailsend";
|
homepage = "https://github.com/muquit/mailsend";
|
||||||
downloadPage = "https://github.com/muquit/mailsend/releases";
|
downloadPage = "https://github.com/muquit/mailsend/releases";
|
||||||
mainProgram = "mailsend";
|
mainProgram = "mailsend";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue