Commit 9739a232 authored by Dyego Aurélio's avatar Dyego Aurélio
Browse files

nixfmt: format cabal2nix output on update script

parent ecf1395c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
#!/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."