Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1#!/usr/bin/env nix-shell 2#!nix-shell -i bash -p nodePackages.npm nix-update 3 4set -euo pipefail 5 6version=$(npm view @anthropic-ai/claude-code version) 7 8# Generate updated lock file 9cd "$(dirname "${BASH_SOURCE[0]}")" 10npm i --package-lock-only @anthropic-ai/claude-code@"$version" 11rm -f package.json 12 13# Update version and hashes 14cd - 15nix-update claude-code --version "$version"