mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-19 03:29:17 +03:00
Merge pull request #301310 from SomeoneSerge/fix/nixfmt-workflow
workflows/check-nix-format.yml: pin nixpkgs (fix staging)
This commit is contained in:
commit
12842ab09f
5
.github/workflows/check-nix-format.yml
vendored
5
.github/workflows/check-nix-format.yml
vendored
@ -23,8 +23,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
# explicitly enable sandbox
|
# explicitly enable sandbox
|
||||||
extra_nix_config: sandbox = true
|
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
|
- 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
|
- name: Check that Nix files are formatted according to the RFC style
|
||||||
# Each environment variable beginning with NIX_FMT_PATHS_ is a list of
|
# Each environment variable beginning with NIX_FMT_PATHS_ is a list of
|
||||||
# paths to check with nixfmt.
|
# paths to check with nixfmt.
|
||||||
|
Loading…
Reference in New Issue
Block a user