mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-10 09:43:30 +01:00
{coc-sumneko-lua,gatsby-cli,json-server}: fix updateScript (#459666)
This commit is contained in:
commit
a2a76105d5
|
|
@ -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")")"
|
||||||
|
|
|
||||||
|
|
@ -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@(.*)"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue