Skip to content

Commit daab727

Browse files
committed
nixfmt: format cabal2nix output on update script
1 parent ecf1395 commit daab727

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkgs/by-name/ni/nixfmt/update.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env nix-shell
2-
#!nix-shell -i bash -p cabal2nix curl jq
2+
#!nix-shell --pure -i bash -p cabal2nix curl cacert jq nix
33
#
44
# This script will update the nixfmt derivation to the latest version using
55
# cabal2nix.
@@ -24,4 +24,7 @@ cabal2nix --jailbreak \
2424
"https://github.com/nixos/nixfmt/archive/${release_tag}.tar.gz" \
2525
>> "$derivation_file"
2626

27+
nix-shell "$script_dir/../../../../" \
28+
--run "treefmt $derivation_file"
29+
2730
echo "Finished."

0 commit comments

Comments
 (0)