Skip to content

Commit 07465d8

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 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 nixfmt
33
#
44
# This script will update the nixfmt derivation to the latest version using
55
# cabal2nix.
@@ -22,6 +22,7 @@ EOF
2222

2323
cabal2nix --jailbreak \
2424
"https://github.com/nixos/nixfmt/archive/${release_tag}.tar.gz" \
25+
| nixfmt \
2526
>> "$derivation_file"
2627

2728
echo "Finished."

0 commit comments

Comments
 (0)