From 5543455cb543045ffc9db18ffa920afef99496c7 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Tue, 29 Nov 2022 09:21:24 +0000
Subject: [PATCH] dns: init at 4.1.0

---
 horizon.dhall |  1 +
 overlay.nix   |  2 ++
 pkgs/dns.nix  | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 73 insertions(+)
 create mode 100644 pkgs/dns.nix

diff --git a/horizon.dhall b/horizon.dhall
index 82325a8..46e5736 100644
--- a/horizon.dhall
+++ b/horizon.dhall
@@ -151,6 +151,7 @@ let otherLibraries =
       , H.callHackage "deque" "0.4.4"
       , H.callHackage "deriving-compat" "0.6.1"
       , H.callHackage "dictionary-sharing" "0.1.0.0"
+      , H.callHackage "dns" "4.1.0"
       , H.callHackage "doctest-discover" "0.2.0.0"
       , H.callHackage "dom-lt" "0.2.3"
       , H.callCabal2nix
diff --git a/overlay.nix b/overlay.nix
index 321eb7c..94a45b6 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -103,6 +103,8 @@ final: prev: with pkgs.haskell.lib; {
 
   dictionary-sharing = final.callPackage (./pkgs/dictionary-sharing.nix) { };
 
+  dns = final.callPackage (./pkgs/dns.nix) { };
+
   doctest-discover = final.callPackage (./pkgs/doctest-discover.nix) { };
 
   dom-lt = final.callPackage (./pkgs/dom-lt.nix) { };
diff --git a/pkgs/dns.nix b/pkgs/dns.nix
new file mode 100644
index 0000000..c619e37
--- /dev/null
+++ b/pkgs/dns.nix
@@ -0,0 +1,70 @@
+{ mkDerivation
+, QuickCheck
+, array
+, async
+, attoparsec
+, auto-update
+, base
+, base16-bytestring
+, base64-bytestring
+, bytestring
+, containers
+, cryptonite
+, doctest
+, hourglass
+, hspec
+, hspec-discover
+, iproute
+, lib
+, mtl
+, network
+, psqueues
+, word8
+}:
+mkDerivation {
+  pname = "dns";
+  version = "4.1.0";
+  sha256 = "45e3ceb2c2b7a3b2a23fd384f84a81fc4b91330f841f54ae62d8e7a411f100d1";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    array
+    async
+    attoparsec
+    auto-update
+    base
+    base16-bytestring
+    base64-bytestring
+    bytestring
+    containers
+    cryptonite
+    hourglass
+    iproute
+    mtl
+    network
+    psqueues
+  ];
+  testHaskellDepends = [
+    base
+    bytestring
+    doctest
+    hspec
+    iproute
+    network
+    QuickCheck
+    word8
+  ];
+  testToolDepends = [ hspec-discover ];
+  enableLibraryProfiling = true;
+  enableExecutableProfiling = true;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  testTarget = "spec";
+  hyperlinkSource = false;
+  description = "DNS library in Haskell";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab