From 5861731555e8623791cd8b5aff8a02dfd4dd8745 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Sun, 4 Sep 2022 13:59:01 +0100
Subject: [PATCH] Pull th-lift-instances from hackage

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

diff --git a/flake.lock b/flake.lock
index 25444f4f..29ee0377 100644
--- a/flake.lock
+++ b/flake.lock
@@ -229,8 +229,7 @@
         "memory": "memory",
         "nixpkgs": "nixpkgs_2",
         "tasty": "tasty",
-        "tasty-hedgehog": "tasty-hedgehog",
-        "th-lift-instances": "th-lift-instances"
+        "tasty-hedgehog": "tasty-hedgehog"
       }
     },
     "tasty": {
@@ -264,22 +263,6 @@
         "repo": "tasty-hedgehog",
         "type": "github"
       }
-    },
-    "th-lift-instances": {
-      "flake": false,
-      "locked": {
-        "lastModified": 1661248001,
-        "narHash": "sha256-eGBEfCCoqqY2C31MQWbm2T5d6nvgmdbIXct91z9Tk0k=",
-        "owner": "bennofs",
-        "repo": "th-lift-instances",
-        "rev": "232d7ea04d6fd6dd5a5db48b0279d2f6b3bacd0f",
-        "type": "github"
-      },
-      "original": {
-        "owner": "bennofs",
-        "repo": "th-lift-instances",
-        "type": "github"
-      }
     }
   },
   "root": "root",
diff --git a/flake.nix b/flake.nix
index 1c3a96af..01251661 100644
--- a/flake.nix
+++ b/flake.nix
@@ -37,10 +37,6 @@
       url = "github:locallycompact/tasty-hedgehog";
       flake = false;
     };
-    th-lift-instances = {
-      url = "github:bennofs/th-lift-instances";
-      flake = false;
-    };
   };
   outputs = inputs@{ self, nixpkgs, flake-utils, lint-utils, ... }:
     flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
diff --git a/overlay.nix b/overlay.nix
index 082a1c83..c0209a61 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -221,7 +221,7 @@ final: prev: with pkgs.haskell.lib; {
 
   these = doJailbreak prev.these;
 
-  th-lift-instances = prev.callCabal2nix "th-lift-instances" inputs.th-lift-instances { };
+  th-lift-instances = prev.callHackage "th-lift-instances" "0.1.20" { };
 
   time-compat = doJailbreak prev.time-compat;
 
-- 
GitLab