about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--default.nix6
-rwxr-xr-xtools/bin/__dispatch.sh6
l---------tools/bin/ormolu (renamed from tools/bin/stylish-haskell)0
3 files changed, 9 insertions, 3 deletions
diff --git a/default.nix b/default.nix
index e9288179c9..5d9f128208 100644
--- a/default.nix
+++ b/default.nix
@@ -19,6 +19,12 @@ let
     gitAppraise = pkgs.callPackage ./third_party/go/git-appraise/git-appraise {};
     nixery = import ./third_party/nixery.nix { pkgs = super; };
     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
diff --git a/tools/bin/__dispatch.sh b/tools/bin/__dispatch.sh
index 7af832c65f..1df5957fda 100755
--- a/tools/bin/__dispatch.sh
+++ b/tools/bin/__dispatch.sh
@@ -13,9 +13,6 @@ case "${TARGET_TOOL}" in
   git-appraise)
     attr="thirdParty.gitAppraise"
     ;;
-  stylish-haskell)
-    attr="haskellPackages.stylish-haskell"
-    ;;
   terraform)
     attr="terraform-gcp"
     ;;
@@ -25,6 +22,9 @@ case "${TARGET_TOOL}" in
   blog_cli)
     attr="tazjin.blog_cli"
     ;;
+  ormolu)
+    attr="ormolu"
+    ;;
   *)
     echo "The tool '${TARGET_TOOL}' is currently not installed in this repository."
     exit 1
diff --git a/tools/bin/stylish-haskell b/tools/bin/ormolu
index 8390ec9c96..8390ec9c96 120000
--- a/tools/bin/stylish-haskell
+++ b/tools/bin/ormolu