about summary refs log tree commit diff
diff options
context:
space:
mode:
authorConnor Baker <connor.baker@tweag.io>2024-04-03 16:59:45 -0400
committerGitHub <noreply@github.com>2024-04-03 16:59:45 -0400
commit12842ab09f2dc653a157a764a136a037e224e5a7 (patch)
tree22857a21b40a5f29840d412818426095d82144de
parent29b575a0e8c3a21d8eb9bb2b5f02f53739b21a34 (diff)
parenta20f661a2c04c550c234f262e92526b5d0d89b3f (diff)
Merge pull request #301310 from SomeoneSerge/fix/nixfmt-workflow
workflows/check-nix-format.yml: pin nixpkgs (fix staging)
-rw-r--r--.github/workflows/check-nix-format.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/check-nix-format.yml b/.github/workflows/check-nix-format.yml
index 368d9568c80a8..c1d87faca2133 100644
--- a/.github/workflows/check-nix-format.yml
+++ b/.github/workflows/check-nix-format.yml
@@ -23,8 +23,11 @@ jobs:
         with:
           # explicitly enable sandbox
           extra_nix_config: sandbox = true
+          # fix a commit from nixpkgs-unstable to avoid e.g. building nixfmt
+          # from staging
+          nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/4b455dc2048f73a79eb3713f342369ff58f93e0b.tar.gz
       - name: Install nixfmt
-        run: nix-env -f default.nix -iAP nixfmt-rfc-style
+        run: "nix-env -f '<nixpkgs>' -iAP nixfmt-rfc-style"
       - name: Check that Nix files are formatted according to the RFC style
         # Each environment variable beginning with NIX_FMT_PATHS_ is a list of
         # paths to check with nixfmt.