From 99375d69d0202da2115d666d67bb32865585daf4 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Sat, 5 Nov 2022 08:59:43 +0000
Subject: [PATCH] x509-validation: init at 1.6.12

---
 manifest.dhall           |  1 +
 overlay.nix              |  2 ++
 pkgs/x509-validation.nix | 66 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 69 insertions(+)
 create mode 100644 pkgs/x509-validation.nix

diff --git a/manifest.dhall b/manifest.dhall
index 412de0d0..c0beee6e 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -556,6 +556,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "with-utf8" "1.0.2.3"
     , callHackage "x509-store" "1.6.9"
     , callHackage "x509-system" "1.6.7"
+    , callHackage "x509-validation" "1.6.12"
     , callHackage "x509" "1.7.7"
     , callHackage "xml-conduit" "1.9.1.1"
     ]
diff --git a/overlay.nix b/overlay.nix
index 685d37e4..a2c98d91 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -723,6 +723,8 @@ final: prev: with pkgs.haskell.lib; {
 
   x509-system = prev.callPackage (./pkgs/x509-system.nix) { };
 
+  x509-validation = prev.callPackage (./pkgs/x509-validation.nix) { };
+
   xml-conduit = prev.callPackage (./pkgs/xml-conduit.nix) { };
 
 }
diff --git a/pkgs/x509-validation.nix b/pkgs/x509-validation.nix
new file mode 100644
index 00000000..78ebbb1c
--- /dev/null
+++ b/pkgs/x509-validation.nix
@@ -0,0 +1,66 @@
+{ mkDerivation
+, asn1-encoding
+, asn1-types
+, base
+, bytestring
+, containers
+, cryptonite
+, data-default-class
+, hourglass
+, lib
+, memory
+, mtl
+, pem
+, tasty
+, tasty-hunit
+, x509
+, x509-store
+}:
+mkDerivation {
+  pname = "x509-validation";
+  version = "1.6.12";
+  sha256 = "0d8e44e199332b22df3e7c19d21b1a79f237fde9a3abf23bef9e7c4991d0f1c8";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    asn1-encoding
+    asn1-types
+    base
+    bytestring
+    containers
+    cryptonite
+    data-default-class
+    hourglass
+    memory
+    mtl
+    pem
+    x509
+    x509-store
+  ];
+  testHaskellDepends = [
+    asn1-encoding
+    asn1-types
+    base
+    bytestring
+    cryptonite
+    data-default-class
+    hourglass
+    memory
+    tasty
+    tasty-hunit
+    x509
+    x509-store
+  ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "http://github.com/vincenthz/hs-certificate";
+  description = "X.509 Certificate and CRL validation";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab