From 0fee38dec34007efea464105abd6185cf7f4a6a3 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Sat, 5 Nov 2022 12:57:12 +0000
Subject: [PATCH] sqlite-simple: init at 0.4.18.2

---
 manifest.dhall         |  1 +
 overlay.nix            |  2 ++
 pkgs/sqlite-simple.nix | 59 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 62 insertions(+)
 create mode 100644 pkgs/sqlite-simple.nix

diff --git a/manifest.dhall b/manifest.dhall
index 2e3a1126..f1a688e9 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -540,6 +540,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "sop-core" "0.5.0.1"
     , callHackage "souffle-haskell" "3.5.0"
     , callHackage "split" "0.2.3.3"
+    , callHackage "sqlite-simple" "0.4.18.2"
     , callHackage "statistics" "0.16.1.0"
     , callHackage "streaming-commons" "0.2.2.4"
     , callHackage "strict" "0.4.0.1"
diff --git a/overlay.nix b/overlay.nix
index a2def313..be092982 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -735,6 +735,8 @@ final: prev: with pkgs.haskell.lib; {
 
   split = prev.callPackage (./pkgs/split.nix) { };
 
+  sqlite-simple = prev.callPackage (./pkgs/sqlite-simple.nix) { };
+
   statistics = prev.callPackage (./pkgs/statistics.nix) { };
 
   streaming-commons = prev.callPackage (./pkgs/streaming-commons.nix) { };
diff --git a/pkgs/sqlite-simple.nix b/pkgs/sqlite-simple.nix
new file mode 100644
index 00000000..2247f1ec
--- /dev/null
+++ b/pkgs/sqlite-simple.nix
@@ -0,0 +1,59 @@
+{ mkDerivation
+, attoparsec
+, base
+, base16-bytestring
+, blaze-builder
+, blaze-textual
+, bytestring
+, containers
+, direct-sqlite
+, HUnit
+, lib
+, Only
+, template-haskell
+, text
+, time
+, transformers
+}:
+mkDerivation {
+  pname = "sqlite-simple";
+  version = "0.4.18.2";
+  sha256 = "dc15b1a7dd5428f218d40cd8b3e51d4b559d5d86c52639ba3f0f811813735d91";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    attoparsec
+    base
+    blaze-builder
+    blaze-textual
+    bytestring
+    containers
+    direct-sqlite
+    Only
+    template-haskell
+    text
+    time
+    transformers
+  ];
+  testHaskellDepends = [
+    base
+    base16-bytestring
+    bytestring
+    direct-sqlite
+    HUnit
+    text
+    time
+  ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "http://github.com/nurpax/sqlite-simple";
+  description = "Mid-Level SQLite client library";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab