diff --git a/horizon.dhall b/horizon.dhall
index 34c5ef15579ad0d04163e0104702e66707bda1eb..0dab4c4e678bda2ef4575b1d6859df6adc70116e 100644
--- a/horizon.dhall
+++ b/horizon.dhall
@@ -501,7 +501,11 @@ let packages =
       , rebase = H.callHackage "rebase" "1.20.1.1"
       , ref-tf = H.callHackage "ref-tf" "0.5.0.1"
       , refact = H.callHackage "refact" "0.3.0.2"
-      , refined = H.callHackage "refined" "0.8.1"
+      , refined =
+          H.callGit
+            "https://github.com/nikita-volkov/refined"
+            "11296288b5e2f2b391ee721b50af3cfe7beaa790"
+            (None H.Subdir)
       , regex = H.callHackage "regex" "1.1.0.2"
       , regex-applicative = H.callHackage "regex-applicative" "0.3.4"
       , regex-pcre-builtin = H.callHackage "regex-pcre-builtin" "0.95.2.3.8.44"
diff --git a/horizon.lock b/horizon.lock
index e2d09ef574aab56a0653a77426c83e81f3750c19..54b8bc645d3ac5c4c069e1a2a30c4ed13a787451 100644
--- a/horizon.lock
+++ b/horizon.lock
@@ -1632,7 +1632,7 @@
   }
 , { mapKey = "refined"
   , mapValue =
-      "7950ac3a806e616378950914db65c3c795217e2f5fc2de6d84b24532b9236f04"
+      "90b5df10679101e9d0298845f0235e8a070078ffcaa2eafd01956711abce8966"
   }
 , { mapKey = "regex"
   , mapValue =
diff --git a/pkgs/refined.nix b/pkgs/refined.nix
index c8738070b6b895b63d960581ef493827c3b4058c..5bbad0a6cd80cb509432c6bc9ee903f61dc4fc2d 100644
--- a/pkgs/refined.nix
+++ b/pkgs/refined.nix
@@ -1,11 +1,16 @@
 { mkDerivation, QuickCheck, aeson, base, bytestring, deepseq
-, exceptions, hashable, lib, mtl, template-haskell, text
+, exceptions, fetchgit, hashable, lib, mtl, template-haskell, text
 , these-skinny
 }:
 mkDerivation {
   pname = "refined";
   version = "0.8.1";
-  sha256 = "35ae42f02aaa7dadbbdd6e9b53a5425b3a2d6bd9249235f6679a61f30e0f2735";
+  src = fetchgit {
+    url = "https://github.com/nikita-volkov/refined";
+    sha256 = "1xl5syy2bl0j50fqg6ps161jagm9h30lhcd6z1khnxnfyq473awf";
+    rev = "11296288b5e2f2b391ee721b50af3cfe7beaa790";
+    fetchSubmodules = true;
+  };
   isLibrary = true;
   isExecutable = false;
   enableSeparateDataOutput = false;