From 085f9d89a2495bae3deb4154f003ad98bd679c26 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Wed, 11 Jan 2023 10:53:30 +0000
Subject: [PATCH] snap-core: init at 1.0.5.0

---
 horizon.dhall        |   1 +
 initial-packages.nix |   2 +
 pkgs/snap-core.nix   | 123 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 126 insertions(+)
 create mode 100644 pkgs/snap-core.nix

diff --git a/horizon.dhall b/horizon.dhall
index 2b7bf87f..bc78cabd 100644
--- a/horizon.dhall
+++ b/horizon.dhall
@@ -774,6 +774,7 @@ let packages =
       , skylighting-format-latex =
           H.callHackage "skylighting-format-latex" "0.1"
       , smallcheck = H.callHackage "smallcheck" "1.2.1"
+      , snap-core = H.callHackage "snap-core" "1.0.5.0"
       , socks = H.callHackage "socks" "0.6.1"
       , some = H.callHackage "some" "1.0.4"
       , sop-core = H.callHackage "sop-core" "0.5.0.1"
diff --git a/initial-packages.nix b/initial-packages.nix
index f3bf7b73..4f7fb87f 100644
--- a/initial-packages.nix
+++ b/initial-packages.nix
@@ -1257,6 +1257,8 @@ self: with pkgs.haskell.lib; {
 
   smallcheck = self.callPackage (./pkgs/smallcheck.nix) { };
 
+  snap-core = self.callPackage (./pkgs/snap-core.nix) { };
+
   socks = self.callPackage (./pkgs/socks.nix) { };
 
   some = self.callPackage (./pkgs/some.nix) { };
diff --git a/pkgs/snap-core.nix b/pkgs/snap-core.nix
new file mode 100644
index 00000000..133f2599
--- /dev/null
+++ b/pkgs/snap-core.nix
@@ -0,0 +1,123 @@
+{ mkDerivation
+, HUnit
+, QuickCheck
+, attoparsec
+, base
+, bytestring
+, bytestring-builder
+, case-insensitive
+, containers
+, deepseq
+, directory
+, filepath
+, hashable
+, io-streams
+, lib
+, lifted-base
+, monad-control
+, mtl
+, network
+, network-uri
+, old-locale
+, parallel
+, random
+, readable
+, regex-posix
+, test-framework
+, test-framework-hunit
+, test-framework-quickcheck2
+, text
+, time
+, transformers
+, transformers-base
+, unix-compat
+, unordered-containers
+, vector
+, zlib
+}:
+mkDerivation {
+  pname = "snap-core";
+  version = "1.0.5.0";
+  sha256 = "642aedd244865560b5d656cd460e829a39d859ad031710b79bd112785e38c641";
+  revision = "3";
+  editedCabalFile = "02r6plphl4vqig3xap9amdib0qjd98nqpn5jhy6hsbiwh3p7cy9b";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    attoparsec
+    base
+    bytestring
+    bytestring-builder
+    case-insensitive
+    containers
+    directory
+    filepath
+    hashable
+    HUnit
+    io-streams
+    lifted-base
+    monad-control
+    mtl
+    network
+    network-uri
+    old-locale
+    random
+    readable
+    regex-posix
+    text
+    time
+    transformers
+    transformers-base
+    unix-compat
+    unordered-containers
+    vector
+  ];
+  testHaskellDepends = [
+    attoparsec
+    base
+    bytestring
+    bytestring-builder
+    case-insensitive
+    containers
+    deepseq
+    directory
+    filepath
+    hashable
+    HUnit
+    io-streams
+    lifted-base
+    monad-control
+    mtl
+    network
+    network-uri
+    old-locale
+    parallel
+    QuickCheck
+    random
+    readable
+    regex-posix
+    test-framework
+    test-framework-hunit
+    test-framework-quickcheck2
+    text
+    time
+    transformers
+    transformers-base
+    unix-compat
+    unordered-containers
+    vector
+    zlib
+  ];
+  enableLibraryProfiling = true;
+  enableExecutableProfiling = true;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "http://snapframework.com/";
+  description = "Snap: A Haskell Web Framework (core interfaces and types)";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab