smtp4dev: fix updateScript

This commit is contained in:
Defelo
2025-05-26 23:05:10 +02:00
parent 7149b4252d
commit 84c8271682
2 changed files with 6 additions and 4 deletions
+1 -4
View File
@@ -7,7 +7,6 @@
npmHooks,
fetchNpmDeps,
dotnetCorePackages,
nix-update-script,
}:
buildDotnetModule (finalAttrs: {
@@ -48,9 +47,7 @@ buildDotnetModule (finalAttrs: {
mv $out/bin/Rnwood.Smtp4dev $out/bin/smtp4dev
'';
passthru.updateScript = nix-update-script {
extraArgs = [ "--version-regex=^(\\d+\\.\\d+\\.\\d+)$" ];
};
passthru.updateScript = ./update.sh;
meta = {
description = "Fake smtp email server for development and testing";
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq nix-update
version=$(curl ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} -sfL "https://api.github.com/repos/rnwood/smtp4dev/releases/latest" | jq -r .tag_name)
nix-update --version="$version" smtp4dev