feat(tools): Introduce ormolu for formatting Haskell code
This commit is contained in:
parent
11fcf62297
commit
b856648127
3 changed files with 9 additions and 3 deletions
|
@ -19,6 +19,12 @@ let
|
||||||
gitAppraise = pkgs.callPackage ./third_party/go/git-appraise/git-appraise {};
|
gitAppraise = pkgs.callPackage ./third_party/go/git-appraise/git-appraise {};
|
||||||
nixery = import ./third_party/nixery.nix { pkgs = super; };
|
nixery = import ./third_party/nixery.nix { pkgs = super; };
|
||||||
terraform-gcp = pkgs.terraform_0_12.withPlugins(p: [ p.google ]);
|
terraform-gcp = pkgs.terraform_0_12.withPlugins(p: [ p.google ]);
|
||||||
|
ormolu = import (super.fetchFromGitHub {
|
||||||
|
owner = "tweag";
|
||||||
|
repo = "ormolu";
|
||||||
|
rev = "a7076c0f83e5c06ea9067b71171859fa2ba8afd9";
|
||||||
|
sha256 = "1p4n2ja4ciw3qfskn65ggpy37mvgf2sslxqmqn8s8jjarnqcyfny";
|
||||||
|
}) { pkgs = super; };
|
||||||
};
|
};
|
||||||
|
|
||||||
# The pinned commit here is identical to the public nixery.dev
|
# The pinned commit here is identical to the public nixery.dev
|
||||||
|
|
|
@ -13,9 +13,6 @@ case "${TARGET_TOOL}" in
|
||||||
git-appraise)
|
git-appraise)
|
||||||
attr="thirdParty.gitAppraise"
|
attr="thirdParty.gitAppraise"
|
||||||
;;
|
;;
|
||||||
stylish-haskell)
|
|
||||||
attr="haskellPackages.stylish-haskell"
|
|
||||||
;;
|
|
||||||
terraform)
|
terraform)
|
||||||
attr="terraform-gcp"
|
attr="terraform-gcp"
|
||||||
;;
|
;;
|
||||||
|
@ -25,6 +22,9 @@ case "${TARGET_TOOL}" in
|
||||||
blog_cli)
|
blog_cli)
|
||||||
attr="tazjin.blog_cli"
|
attr="tazjin.blog_cli"
|
||||||
;;
|
;;
|
||||||
|
ormolu)
|
||||||
|
attr="ormolu"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "The tool '${TARGET_TOOL}' is currently not installed in this repository."
|
echo "The tool '${TARGET_TOOL}' is currently not installed in this repository."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue