lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

mailsend: modernize

+23 -12
+23 -12
pkgs/by-name/ma/mailsend/package.nix
··· 1 1 { 2 2 lib, 3 3 stdenv, 4 - fetchurl, 4 + fetchFromGitHub, 5 5 fetchpatch, 6 6 openssl, 7 + versionCheckHook, 7 8 }: 8 9 9 - stdenv.mkDerivation rec { 10 + stdenv.mkDerivation (finalAttrs: { 10 11 pname = "mailsend"; 11 12 version = "1.19"; 12 13 13 - src = fetchurl { 14 - url = "https://github.com/muquit/mailsend/archive/${version}.tar.gz"; 15 - sha256 = "sha256-Vl72vibFjvdQZcVRnq6N1VuuMUKShhlpayjSQrc0k/c="; 14 + src = fetchFromGitHub { 15 + owner = "muquit"; 16 + repo = "mailsend"; 17 + tag = finalAttrs.version; 18 + hash = "sha256-g1V4NrFlIz8oh7IS+cGWG6eje6kBGvPZS7Q131ESrXI="; 16 19 }; 17 20 18 21 buildInputs = [ ··· 23 26 ]; 24 27 25 28 patches = [ 26 - (fetchurl { 29 + # OpenSSL 1.1 support for HMAC api 30 + (fetchpatch { 31 + name = "openssl-1-1-hmac.patch"; 27 32 url = "https://github.com/muquit/mailsend/commit/960df6d7a11eef90128dc2ae660866b27f0e4336.patch"; 28 - sha256 = "0vz373zcfl19inflybfjwshcq06rvhx0i5g0f4b021cxfhyb1sm0"; 33 + hash = "sha256-Gy4pZMYoUXcjMatw5BSk+IUKXjgpLCwPXtfC++WPKAM="; 29 34 }) 30 35 # Pull fix pending upstream inclusion for parallel build failures: 31 36 # https://github.com/muquit/mailsend/pull/165 ··· 40 45 41 46 enableParallelBuilding = true; 42 47 43 - meta = with lib; { 48 + nativeInstallCheckInputs = [ 49 + versionCheckHook 50 + ]; 51 + doInstallCheck = true; 52 + versionCheckProgramArg = "-V"; 53 + 54 + meta = { 44 55 description = "CLI email sending tool"; 45 - license = licenses.bsd3; 46 - maintainers = with maintainers; [ raskin ]; 47 - platforms = platforms.linux; 56 + license = lib.licenses.bsd3; 57 + maintainers = with lib.maintainers; [ raskin ]; 58 + platforms = lib.platforms.linux; 48 59 homepage = "https://github.com/muquit/mailsend"; 49 60 downloadPage = "https://github.com/muquit/mailsend/releases"; 50 61 mainProgram = "mailsend"; 51 62 }; 52 - } 63 + })