open-webui: 0.6.18 -> 0.6.22

Diff: https://github.com/open-webui/open-webui/compare/refs/tags/v0.6.18...refs/tags/v0.6.22

Changelog: https://github.com/open-webui/open-webui/blob/v0.6.22/CHANGELOG.md

codgician 9a10f0dc e9cf094e

+17 -5
+5 -3
pkgs/by-name/op/open-webui/package.nix
··· 9 9 }: 10 10 let 11 11 pname = "open-webui"; 12 - version = "0.6.18"; 12 + version = "0.6.22"; 13 13 14 14 src = fetchFromGitHub { 15 15 owner = "open-webui"; 16 16 repo = "open-webui"; 17 17 tag = "v${version}"; 18 - hash = "sha256-1V9mOhO8jpr0HU0djLjKw6xDQMBmqie6Gte4xfg9PfQ="; 18 + hash = "sha256-SX2uLmDZu1TW45A6F5mSXVtSqv5rbNKuVw8sWj8tEb4="; 19 19 }; 20 20 21 21 frontend = buildNpmPackage rec { ··· 32 32 url = "https://github.com/pyodide/pyodide/releases/download/${pyodideVersion}/pyodide-${pyodideVersion}.tar.bz2"; 33 33 }; 34 34 35 - npmDepsHash = "sha256-bMqK9NvuTwqnhflGDfZTEkaFG8y34Qf94SgR0HMClrQ="; 35 + npmDepsHash = "sha256-mMnDYMy1/7gW6XVaWVct9BuxDP78XX5u46lGBWjUvOQ="; 36 36 37 37 # See https://github.com/open-webui/open-webui/issues/15880 38 38 npmFlags = [ ··· 161 161 opentelemetry-instrumentation-logging 162 162 opentelemetry-instrumentation-httpx 163 163 opentelemetry-instrumentation-aiohttp-client 164 + oracledb 164 165 pandas 165 166 passlib 166 167 peewee ··· 172 173 posthog 173 174 psutil 174 175 psycopg2-binary 176 + pyarrow 175 177 pycrdt 176 178 pydub 177 179 pyjwt
+12 -2
pkgs/by-name/op/open-webui/update.sh
··· 11 11 12 12 # Fetch npm deps and pyodide 13 13 tmpdir=$(mktemp -d) 14 + trap 'rm -rf "$tmpdir"' EXIT 15 + 14 16 curl -O --output-dir $tmpdir "https://raw.githubusercontent.com/open-webui/open-webui/refs/tags/${version}/package-lock.json" 15 17 curl -O --output-dir $tmpdir "https://raw.githubusercontent.com/open-webui/open-webui/refs/tags/${version}/package.json" 16 18 pushd $tmpdir 19 + 20 + # Prefetch the npm dependencies hash 17 21 npm_hash=$(prefetch-npm-deps package-lock.json) 18 22 sed -i 's#npmDepsHash = "[^"]*"#npmDepsHash = "'"$npm_hash"'"#' "$path" 23 + 24 + # Extract pyodide version 19 25 pyodide_version=$(sed -rn 's/^.*pyodide.*\^([0-9.]*)\".*$/\1/p' package.json) 20 26 popd 21 - update-source-version open-webui.frontend "${pyodide_version}" --file="$path" --version-key=pyodideVersion --source-key=pyodide 22 - rm -rf $tmpdir 27 + 28 + # Update the pyodide version if necessary 29 + current_pyodide_version=$(nix eval --raw -f . open-webui.frontend.pyodideVersion) 30 + if [ "$current_pyodide_version" < "$pyodide_version" ]; then 31 + update-source-version open-webui.frontend "${pyodide_version}" --file="$path" --version-key=pyodideVersion --source-key=pyodide 32 + fi