From e4db6d4e6c2624f0e5966c84620057ad8b5ca269 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Thu, 8 Sep 2022 17:46:07 +0100
Subject: [PATCH] hlint: init and track master

---
 flake.lock  | 17 +++++++++++++++++
 flake.nix   |  4 ++++
 overlay.nix |  2 ++
 3 files changed, 23 insertions(+)

diff --git a/flake.lock b/flake.lock
index d2b7e8e5..d0d87552 100644
--- a/flake.lock
+++ b/flake.lock
@@ -195,6 +195,22 @@
         "type": "github"
       }
     },
+    "hlint": {
+      "flake": false,
+      "locked": {
+        "lastModified": 1662124777,
+        "narHash": "sha256-5xLQVRmpTELwR28CbT9Ja2rsFddurs1mtfLr67NI0BA=",
+        "owner": "ndmitchell",
+        "repo": "hlint",
+        "rev": "68f9139403838b442110d5ab60da446768e8a26f",
+        "type": "github"
+      },
+      "original": {
+        "owner": "ndmitchell",
+        "repo": "hlint",
+        "type": "github"
+      }
+    },
     "lint-utils": {
       "inputs": {
         "flake-utils": "flake-utils_2",
@@ -309,6 +325,7 @@
         "flake-utils": "flake-utils",
         "haskell-flake": "haskell-flake",
         "hedgehog-golden": "hedgehog-golden",
+        "hlint": "hlint",
         "lint-utils": "lint-utils",
         "memory": "memory",
         "nixpkgs": "nixpkgs_2",
diff --git a/flake.nix b/flake.nix
index 38c42fc1..1e7d2f38 100644
--- a/flake.nix
+++ b/flake.nix
@@ -36,6 +36,10 @@
       url = "github:maybe-hedgehog-later/hedgehog-golden";
       flake = false;
     };
+    hlint = {
+      url = "github:ndmitchell/hlint";
+      flake = false;
+    };
     memory = {
       url = "github:parsonsmatt/hs-memory/0f760c8ba0b7d5aacf04a7294e87e5e4fff53f40";
       flake = false;
diff --git a/overlay.nix b/overlay.nix
index 036d6062..7210c968 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -150,6 +150,8 @@ final: prev: with pkgs.haskell.lib; {
 
   hedgehog-quickcheck = doJailbreak (prev.callHackage "hedgehog-quickcheck" "0.1.1" { });
 
+  hlint = prev.callCabal2nix "hlint" inputs.hlint { };
+
   hourglass = dontCheck (prev.callHackage "hourglass" "0.2.12" { });
 
   hslua-aeson = doJailbreak (prev.callHackage "hslua-aeson" "2.2.1" { });
-- 
GitLab