From ef73ddd2e0a3bff2ee2e90bfa783e3310e7fba07 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Sat, 5 Nov 2022 08:51:43 +0000
Subject: [PATCH] asn1-parse: init at 0.9.5

---
 manifest.dhall      |  1 +
 overlay.nix         |  2 ++
 pkgs/asn1-parse.nix | 26 ++++++++++++++++++++++++++
 3 files changed, 29 insertions(+)
 create mode 100644 pkgs/asn1-parse.nix

diff --git a/manifest.dhall b/manifest.dhall
index ab82c2cd..a57fbc74 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -77,6 +77,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "ansi-wl-pprint" "0.6.9"
     , callHackage "apecs" "0.9.4"
     , callHackage "asn1-encoding" "0.9.6"
+    , callHackage "asn1-parse" "0.9.5"
     , callHackage "asn1-types" "0.3.4"
     , callHackage "assoc" "1.0.2"
     , callHackage "async" "2.2.4"
diff --git a/overlay.nix b/overlay.nix
index badf8d10..c223a2ee 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -37,6 +37,8 @@ final: prev: with pkgs.haskell.lib; {
 
   asn1-encoding = prev.callPackage (./pkgs/asn1-encoding.nix) { };
 
+  asn1-parse = prev.callPackage (./pkgs/asn1-parse.nix) { };
+
   asn1-types = prev.callPackage (./pkgs/asn1-types.nix) { };
 
   assoc = prev.callPackage (./pkgs/assoc.nix) { };
diff --git a/pkgs/asn1-parse.nix b/pkgs/asn1-parse.nix
new file mode 100644
index 00000000..0ebb8e98
--- /dev/null
+++ b/pkgs/asn1-parse.nix
@@ -0,0 +1,26 @@
+{ mkDerivation, asn1-encoding, asn1-types, base, bytestring, lib }:
+mkDerivation {
+  pname = "asn1-parse";
+  version = "0.9.5";
+  sha256 = "8f1fe1344d30b39dc594d74df2c55209577722af1497204b4c2b6d6e8747f39e";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    asn1-encoding
+    asn1-types
+    base
+    bytestring
+  ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "https://github.com/vincenthz/hs-asn1";
+  description = "Simple monadic parser for ASN1 stream types";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab