openclaw: fix update script for insecure package (#500841)

This commit is contained in:
Masum Reza
2026-04-03 04:04:22 +00:00
committed by GitHub
2 changed files with 9 additions and 2 deletions
+1 -2
View File
@@ -9,7 +9,6 @@
nodejs_22,
makeWrapper,
versionCheckHook,
nix-update-script,
rolldown,
installShellFiles,
version ? "2026.3.12",
@@ -100,7 +99,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
passthru.updateScript = ./update.sh;
meta = {
description = "Self-hosted, open-source AI assistant/agent";
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env nix-shell
#!nix-shell -I nixpkgs=./. -i bash -p nix-update
#shellcheck shell=bash
set -euo pipefail
export NIXPKGS_ALLOW_INSECURE=1 # package has knownVulnerabilities
nix-update "$UPDATE_NIX_ATTR_PATH"