about summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorRobert Scott2024-08-27 20:09:01 +0100
committerRobert Scott2024-11-03 21:58:53 +0000
commit0335471fde0104385ccea1a77723bd64ec8f3678 (patch)
treedeba5fc5c14a7826bfbd0a3b5289a7cff01c31a3 /pkgs/servers
parentd25ccf9c58373fd303083218b146d75d063569fa (diff)
immudb: 1.9DOM.2 -> 1.9.5
add mechanism to detect webconsole mismatch

(vendor hash did indeed not change)

https://github.com/codenotary/immudb/compare/v1.9DOM.2...v1.9.5
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/nosql/immudb/default.nix13
1 files changed, 11 insertions, 2 deletions
diff --git a/pkgs/servers/nosql/immudb/default.nix b/pkgs/servers/nosql/immudb/default.nix
index 74571dfff5f1..2ebe92995bd9 100644
--- a/pkgs/servers/nosql/immudb/default.nix
+++ b/pkgs/servers/nosql/immudb/default.nix
@@ -14,15 +14,24 @@ let
 in
 buildGoModule rec {
   pname = "immudb";
-  version = "1.9DOM.2";
+  version = "1.9.5";
 
   src = fetchFromGitHub {
     owner = "codenotary";
     repo = pname;
     rev = "v${version}";
-    sha256 = "sha256-bNMJZWXelHQatW9rhqf3eYs61nJJEBwMXZhUZWQv6S0=";
+    sha256 = "sha256-XKioPk0Rv+I916OLInJEtOaDV9KcBMWSHmPOq2k3LTQ=";
   };
 
+  postPatch = ''
+    EXPECTED_WEBCONSOLE_STRING='DEFAULT_WEBCONSOLE_VERSION=${webconsoleVersion}'
+    if ! grep -F "$EXPECTED_WEBCONSOLE_STRING" Makefile ; then
+      echo "Did not find $EXPECTED_WEBCONSOLE_STRING in Makefile. " \
+        "Our webconsole version may need bumping (or the Makefile may have changed)"
+      exit 3
+    fi
+  '';
+
   preBuild = ''
     mkdir -p webconsole/dist
     cp -r ${webconsoleDist}/* ./webconsole/dist