{coc-sumneko-lua,gatsby-cli,json-server}: fix updateScript (#459666)

This commit is contained in:
dish 2025-11-08 17:37:35 +00:00 committed by GitHub
commit a2a76105d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View file

@ -1,5 +1,5 @@
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash nodejs nix-update git curl #!nix-shell -i bash -p bash nodejs nix-update git curl jq
WORKDIR=$(mktemp -d) WORKDIR=$(mktemp -d)
PACKAGE_DIR="$(realpath "$(dirname "$0")")" PACKAGE_DIR="$(realpath "$(dirname "$0")")"

View file

@ -68,8 +68,10 @@ stdenv.mkDerivation (finalAttrs: {
passthru.updateScript = nix-update-script { passthru.updateScript = nix-update-script {
extraArgs = [ extraArgs = [
# Fixes an error with having too many versions available
"--use-github-releases"
"--version-regex" "--version-regex"
"'gatsby-cli@(.*)'" "gatsby@(.*)"
]; ];
}; };

View file

@ -18,7 +18,7 @@ buildNpmPackage (finalAttrs: {
npmDepsHash = "sha256-HZmCxMKgxJ+ZiRDXh/iVmytNMbPoYzSuI0F8YmkcfZI="; npmDepsHash = "sha256-HZmCxMKgxJ+ZiRDXh/iVmytNMbPoYzSuI0F8YmkcfZI=";
passthru.updateScript = nix-update-script { }; passthru.updateScript = nix-update-script { extraArgs = [ "--version=unstable" ]; };
meta = { meta = {
description = "Get a full fake REST API with zero coding in less than 30 seconds"; description = "Get a full fake REST API with zero coding in less than 30 seconds";