From df2ec79c23104ab560949d0ccdf4b0283ac8a77e Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 16 Mar 2024 13:36:24 -0500 Subject: [PATCH] refactor: ensure nix shebangs invoke `--extra-experimental-features` --- scripts/check-fmt-git-files.bash | 2 +- scripts/fmt.bash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/check-fmt-git-files.bash b/scripts/check-fmt-git-files.bash index 9b04de4d..72a8f9d1 100755 --- a/scripts/check-fmt-git-files.bash +++ b/scripts/check-fmt-git-files.bash @@ -1,4 +1,4 @@ -#!/usr/bin/env -S nix shell nixpkgs#bash nixpkgs#git --command bash +#!/usr/bin/env -S nix --extra-experimental-features "flakes nix-command" shell nixpkgs#bash nixpkgs#git --command bash # vim: ft=sh set -euo pipefail diff --git a/scripts/fmt.bash b/scripts/fmt.bash index df0bcbb2..6ae145e3 100755 --- a/scripts/fmt.bash +++ b/scripts/fmt.bash @@ -1,4 +1,4 @@ -#!/usr/bin/env -S nix shell nixpkgs#bash nixpkgs#stylua nixpkgs#gnugrep nixpkgs#nixfmt nixpkgs#nodePackages.prettier nixpkgs#shfmt --command bash +#!/usr/bin/env -S nix --extra-experimental-features "flakes nix-command" shell nixpkgs#bash nixpkgs#stylua nixpkgs#gnugrep nixpkgs#nixfmt nixpkgs#nodePackages.prettier nixpkgs#shfmt --command bash # vim: ft=sh set -euo pipefail