From d9620a07e30ed154b22325a573c5df2805831936 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Sun, 23 Oct 2022 08:20:54 +0100
Subject: [PATCH] pg-entity: init at 0.0.2.0

---
 manifest.dhall     |  1 +
 overlay.nix        |  2 ++
 pkgs/pg-entity.nix | 32 ++++++++++++++++++++++++++++++++
 3 files changed, 35 insertions(+)
 create mode 100644 pkgs/pg-entity.nix

diff --git a/manifest.dhall b/manifest.dhall
index 66ab7fb6..daf27135 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -308,6 +308,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "pcg-random" "0.1.3.7"
     , callHackage "pcre2" "2.2.1"
     , callHackage "persistent" "2.14.3.0"
+    , callHackage "pg-entity" "0.0.2.0"
     , callHackage "pg-transact" "0.3.2.0"
     , callCabal2nix
         "pg-transact-effectful"
diff --git a/overlay.nix b/overlay.nix
index e040b438..e0511b1e 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -371,6 +371,8 @@ final: prev: with pkgs.haskell.lib; {
 
     persistent = prev.callPackage (./pkgs/persistent.nix) { };
 
+    pg-entity = prev.callPackage (./pkgs/pg-entity.nix) { };
+
     pg-transact = prev.callPackage (./pkgs/pg-transact.nix) { };
 
     pg-transact-effectful = prev.callPackage (./pkgs/pg-transact-effectful.nix) { };
diff --git a/pkgs/pg-entity.nix b/pkgs/pg-entity.nix
new file mode 100644
index 00000000..832ec4e7
--- /dev/null
+++ b/pkgs/pg-entity.nix
@@ -0,0 +1,32 @@
+{ mkDerivation, aeson, base, bytestring, colourista, containers
+, exceptions, hedgehog, lib, monad-control, mtl, optics-core
+, parsec, pg-transact, postgresql-simple
+, postgresql-simple-migration, resource-pool, safe-exceptions
+, tasty, tasty-hunit, template-haskell, text, text-display
+, text-manipulate, time, tmp-postgres, uuid, vector
+}:
+mkDerivation {
+  pname = "pg-entity";
+  version = "0.0.2.0";
+  sha256 = "3bcc0981b43722de34b2d610ddfef8c43fb97607297a0b4052a4d2425364113d";
+  revision = "1";
+  editedCabalFile = "03f0isq7vdjc1xbdchb5l0ggbf61jkxn2q1bii6sx8nphfgk4c9j";
+  libraryHaskellDepends = [
+    base bytestring colourista exceptions monad-control parsec
+    pg-transact postgresql-simple resource-pool safe-exceptions
+    template-haskell text text-display text-manipulate time uuid vector
+  ];
+  testHaskellDepends = [
+    aeson base containers hedgehog mtl optics-core pg-transact
+    postgresql-simple postgresql-simple-migration resource-pool
+    safe-exceptions tasty tasty-hunit text time tmp-postgres uuid
+    vector
+  ];
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  hyperlinkSource = false;
+  homepage = "https://tchoutri.github.io/pg-entity";
+  description = "A pleasant PostgreSQL layer";
+  license = lib.licenses.mit;
+}
\ No newline at end of file
-- 
GitLab