From aeb3fc553d65d926d8f433431f8f773eea578adb Mon Sep 17 00:00:00 2001
From: Dom Brown <dom.brown@platonic.systems>
Date: Wed, 19 Oct 2022 14:02:11 +0100
Subject: [PATCH] autodocodec: init at 0.2.0.1

---
 manifest.dhall       |  1 +
 overlay.nix          |  2 ++
 pkgs/autodocodec.nix | 20 ++++++++++++++++++++
 3 files changed, 23 insertions(+)
 create mode 100644 pkgs/autodocodec.nix

diff --git a/manifest.dhall b/manifest.dhall
index e94addad..9440be61 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -74,6 +74,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "apecs" "0.9.4"
     , callHackage "assoc" "1.0.2"
     , callHackage "async" "2.2.4"
+    , callHackage "autodocodec" "0.2.0.1"
     , callHackage "autodocodec-yaml" "0.2.0.2"
     , callHackage "basement" "0.0.15"
     , callHackage "base64" "0.4.2.4"
diff --git a/overlay.nix b/overlay.nix
index e71510b4..5e80069a 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -31,6 +31,8 @@ final: prev: with pkgs.haskell.lib; {
 
     async = prev.callPackage (./pkgs/async.nix) { };
 
+    autodocodec = prev.callPackage (./pkgs/autodocodec.nix) { };
+
     autodocodec-yaml = prev.callPackage (./pkgs/autodocodec-yaml.nix) { };
 
     base-compat = prev.callPackage (./pkgs/base-compat.nix) { };
diff --git a/pkgs/autodocodec.nix b/pkgs/autodocodec.nix
new file mode 100644
index 00000000..037b3e9f
--- /dev/null
+++ b/pkgs/autodocodec.nix
@@ -0,0 +1,20 @@
+{ mkDerivation, aeson, base, bytestring, containers, hashable, lib
+, mtl, scientific, text, time, unordered-containers, validity
+, validity-scientific, vector
+}:
+mkDerivation {
+  pname = "autodocodec";
+  version = "0.2.0.1";
+  sha256 = "4f4e2c2c57608a7e3060247a0f1b86e3f1257c2ba15af3c4649b9d87a6155bde";
+  libraryHaskellDepends = [
+    aeson base bytestring containers hashable mtl scientific text time
+    unordered-containers validity validity-scientific vector
+  ];
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  hyperlinkSource = false;
+  homepage = "https://github.com/NorfairKing/autodocodec#readme";
+  description = "Self-documenting encoder and decoder";
+  license = lib.licenses.mit;
+}
\ No newline at end of file
-- 
GitLab