nixfmt: format cabal2nix output on update script

This commit is contained in:
Dyego Aurélio
2026-01-09 08:45:42 -03:00
parent ecf1395c0f
commit 9739a232e5
+4 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p cabal2nix curl jq
#!nix-shell --pure -i bash -p cabal2nix curl cacert jq nix
#
# This script will update the nixfmt derivation to the latest version using
# cabal2nix.
@@ -24,4 +24,7 @@ cabal2nix --jailbreak \
"https://github.com/nixos/nixfmt/archive/${release_tag}.tar.gz" \
>> "$derivation_file"
nix-shell "$script_dir/../../../../" \
--run "treefmt --no-cache $derivation_file"
echo "Finished."