From 87c1561b470181a7842b22f6b808cc62719097f3 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Wed, 11 Aug 2021 18:17:34 -0500 Subject: [PATCH] Create a minimal shell derivation for the check-fmt script --- check-fmt | 2 +- check-fmt.nix | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 check-fmt.nix diff --git a/check-fmt b/check-fmt index e3a5587..1fe212b 100755 --- a/check-fmt +++ b/check-fmt @@ -1,5 +1,5 @@ #!/usr/bin/env nix-shell -#!nix-shell ./shell.nix -i bash +#!nix-shell ./check-fmt.nix -i bash # # Just because the nixpkgs-fmt error message is not super readable. Used by # CI. diff --git a/check-fmt.nix b/check-fmt.nix new file mode 100644 index 0000000..ab5f223 --- /dev/null +++ b/check-fmt.nix @@ -0,0 +1,7 @@ +let + sources = import ./nix/sources.nix; + pkgs = import sources.nixpkgs { }; +in +pkgs.mkShell { + nativeBuildInputs = [ pkgs.nixpkgs-fmt ]; +}