about summary refs log tree commit diff stats
path: root/pkgs/by-name/st/stalwart-mail-free/mail-send.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-03-04 19:21:22 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-03-09 13:44:23 +0100
commit80fab76532b5b159cf0c9c910387b1c09907be30 (patch)
treea44b2662847ae6c712ef84e54f6c208444252eb6 /pkgs/by-name/st/stalwart-mail-free/mail-send.nix
parentmodules/dns/dns/types/records/MTA-STS.nix: Init (diff)
downloadnixos-server-80fab76532b5b159cf0c9c910387b1c09907be30.zip
pkgs/stalwart-mail-free: Also patch to use the platform CA store
This is needed for the test.

The general changes are caused by the requirement to update the
`chargoHash`, which currently only works with this counter intuitive
attribute overriding.
Diffstat (limited to 'pkgs/by-name/st/stalwart-mail-free/mail-send.nix')
-rw-r--r--pkgs/by-name/st/stalwart-mail-free/mail-send.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/by-name/st/stalwart-mail-free/mail-send.nix b/pkgs/by-name/st/stalwart-mail-free/mail-send.nix
new file mode 100644
index 0000000..e0d8c57
--- /dev/null
+++ b/pkgs/by-name/st/stalwart-mail-free/mail-send.nix
@@ -0,0 +1,20 @@
+{
+  stdenv,
+  fetchFromGitHub,
+}:
+stdenv.mkDerivation (finalAttrs: {
+  pname = "mail-send";
+  version = "0.5.0";
+
+  src = fetchFromGitHub {
+    owner = "stalwartlabs";
+    repo = "mail-send";
+    tag = "v${finalAttrs.version}";
+    hash = "sha256-uDD4GLwjRpNqjtXPMask0twGW2Gcm1PFyDGXcfPS0F4=";
+  };
+
+  installPhase = ''
+    mkdir --parents "$out"
+    cp --recursive ./. "$out/"
+  '';
+})