From 7ff8480fa7edd29b07e7fe18e420927a0643e5bc Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Sun, 5 Jul 2026 14:25:34 +0100 Subject: [PATCH] ci/update-pinned.sh: import Nixpkgs relative to script Paths within a --expr expression are relative to the script file, while relative paths in NIX_PATH are relative to the caller's CWD. We want the Nixpkgs import to be relative to update-pinned.sh itself, so that it does not matter where it's executed from. See https://github.com/NixOS/nixpkgs/issues/425551 (cherry picked from commit 37aac0fb06e2ca890d463b35af6d45bad44a9f91) --- ci/update-pinned.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/update-pinned.sh b/ci/update-pinned.sh index 69ba7df9131d..51c99b0da98d 100755 --- a/ci/update-pinned.sh +++ b/ci/update-pinned.sh @@ -1,5 +1,5 @@ #!/usr/bin/env nix-shell -#!nix-shell -i bash -p npins -I nixpkgs=../ +#!nix-shell -i bash -E 'with import ../. {}; mkShell { packages = [ npins ]; }' set -euo pipefail