From 23b256ac5bd275bd2890ef11beaf688dfc11db7f Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Sun, 6 Nov 2022 21:39:10 +0000
Subject: [PATCH] resolv: init at 0.1.2.0

---
 manifest.dhall  |  1 +
 overlay.nix     |  2 ++
 pkgs/resolv.nix | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 50 insertions(+)
 create mode 100644 pkgs/resolv.nix

diff --git a/manifest.dhall b/manifest.dhall
index 581a02a3..ece193b7 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -509,6 +509,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "regex-posix" "0.96.0.1"
     , callHackage "refined" "0.8"
     , callHackage "reflection" "2.1.6"
+    , callHackage "resolv" "0.1.2.0"
     , callHackage "resource-pool" "0.3.1.0"
     , callHackage "resourcet" "1.3.0"
     , callHackage "rerebase" "1.15.0.3"
diff --git a/overlay.nix b/overlay.nix
index 3200078e..b3748647 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -737,6 +737,8 @@ self: with pkgs.haskell.lib; {
 
   rerebase = self.callPackage (./pkgs/rerebase.nix) { };
 
+  resolv = self.callPackage (./pkgs/resolv.nix) { };
+
   resource-pool = self.callPackage (./pkgs/resource-pool.nix) { };
 
   resourcet = self.callPackage (./pkgs/resourcet.nix) { };
diff --git a/pkgs/resolv.nix b/pkgs/resolv.nix
new file mode 100644
index 00000000..80f5eaca
--- /dev/null
+++ b/pkgs/resolv.nix
@@ -0,0 +1,47 @@
+{ mkDerivation
+, base
+, base16-bytestring
+, binary
+, bytestring
+, containers
+, directory
+, filepath
+, lib
+, tasty
+, tasty-hunit
+}:
+mkDerivation {
+  pname = "resolv";
+  version = "0.1.2.0";
+  sha256 = "81a2bafad484db123cf8d17a02d98bb388a127fd0f822fa022589468a0e64671";
+  revision = "5";
+  editedCabalFile = "0df5y8bj9bxjmqnkvpwxvb17k70g1i174xs6vfrv9f1lys7xkqk1";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    base
+    base16-bytestring
+    binary
+    bytestring
+    containers
+  ];
+  testHaskellDepends = [
+    base
+    bytestring
+    directory
+    filepath
+    tasty
+    tasty-hunit
+  ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  description = "Domain Name Service (DNS) lookup via the libresolv standard library routines";
+  license = lib.licenses.gpl2Plus;
+  broken = false;
+}
-- 
GitLab