aboutsummaryrefslogtreecommitdiffhomepage
path: root/justfile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-01-29 19:14:38 +0900
committernsfisis <nsfisis@gmail.com>2026-01-29 19:14:38 +0900
commitf981cd0f054309d5a238df8f2e452f6c78b2e920 (patch)
tree68b34dd9ef4d8ca370b5e76c6a07429eacb27d40 /justfile
parentd8a737f52082151bc180917f84bd6f029f0ec71a (diff)
downloadnur-packages-f981cd0f054309d5a238df8f2e452f6c78b2e920.tar.gz
nur-packages-f981cd0f054309d5a238df8f2e452f6c78b2e920.tar.zst
nur-packages-f981cd0f054309d5a238df8f2e452f6c78b2e920.zip
feat(claude-code): upgrade to 2.1.23
Diffstat (limited to 'justfile')
-rw-r--r--justfile21
1 files changed, 2 insertions, 19 deletions
diff --git a/justfile b/justfile
index 0ac180f..c6d5243 100644
--- a/justfile
+++ b/justfile
@@ -2,22 +2,5 @@ commit-upgrade PKG VERSION:
git commit -m 'feat({{PKG}}): upgrade to {{VERSION}}'
update-claude-code:
- #!/usr/bin/env bash
- set -eu
-
- export NIXPKGS_ALLOW_UNFREE=1
- LATEST_VERSION=$(npm view @anthropic-ai/claude-code version)
-
- sed -i 's|version = ".*"|version = "'"$LATEST_VERSION"'"|' pkgs/claude-code/default.nix
- sed -i 's|hash = ".*"|hash = ""|' pkgs/claude-code/default.nix
- sed -i 's|npmDepsHash = ".*"|npmDepsHash = ""|' pkgs/claude-code/default.nix
-
- sed -i '1,10s|"version": ".*"|"version": "'"$LATEST_VERSION"'"|' pkgs/claude-code/package-lock.json
-
- HASH="$(nix build --impure ".#claude-code" 2>&1 | grep "got:" | awk '{ print $2 }')"
- sed -i 's|hash = ""|hash = "'"$HASH"'"|' pkgs/claude-code/default.nix
-
- NPM_DEPS_HASH="$(nix build --impure ".#claude-code" 2>&1 | grep "got:" | awk '{ print $2 }')"
- sed -i 's|npmDepsHash = ""|npmDepsHash = "'"$NPM_DEPS_HASH"'"|' pkgs/claude-code/default.nix
-
- nix build --impure ".#claude-code"
+ pkgs/claude-code/update.sh
+ NIXPKGS_ALLOW_UNFREE=1 nix build --impure ".#claude-code"