smtp4dev: fix updateScript
This commit is contained in:
@@ -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";
|
||||
|
||||
Executable
+5
@@ -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
|
||||
Reference in New Issue
Block a user