Unverified Commit a2a76105 authored by dish's avatar dish Committed by GitHub
Browse files

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

parents 8a664f45 30bd6d82
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
#!/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)
PACKAGE_DIR="$(realpath "$(dirname "$0")")"
+3 −1
Original line number Diff line number Diff line
@@ -68,8 +68,10 @@ stdenv.mkDerivation (finalAttrs: {

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

+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ buildNpmPackage (finalAttrs: {

  npmDepsHash = "sha256-HZmCxMKgxJ+ZiRDXh/iVmytNMbPoYzSuI0F8YmkcfZI=";

  passthru.updateScript = nix-update-script { };
  passthru.updateScript = nix-update-script { extraArgs = [ "--version=unstable" ]; };

  meta = {
    description = "Get a full fake REST API with zero coding in less than 30 seconds";