From 8662642b86f677b802f99b0ce89e2a983d618779 Mon Sep 17 00:00:00 2001
From: Max Tomago <noreply@tomagotech.com>
Date: Tue, 29 Nov 2022 14:34:39 +0100
Subject: [PATCH] snap-core: init at 1.0.5.0

---
 horizon.dhall      |   1 +
 overlay.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 d2b57da..dd9a0fc 100644
--- a/horizon.dhall
+++ b/horizon.dhall
@@ -263,6 +263,7 @@ let otherLibraries =
       , H.callHackage "size-based" "0.1.3.1"
       , callCardanoLedger "small-steps" "libs/small-steps"
       , callCardanoLedger "small-steps-test" "libs/small-steps-test"
+      , H.callHackage "snap-core" "1.0.5.0"
       , H.callHackage "statistics-linreg" "0.3"
       , H.callHackage "streaming-binary" "0.3.0.1"
       , H.callHackage "streaming-bytestring" "0.2.4"
diff --git a/overlay.nix b/overlay.nix
index 77bf96c..5ae4703 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -235,6 +235,8 @@ final: prev: with pkgs.haskell.lib; {
 
   small-steps-test = final.callPackage (./pkgs/small-steps-test.nix) { };
 
+  snap-core = final.callPackage (./pkgs/snap-core.nix) { };
+
   statistics-linreg = final.callPackage (./pkgs/statistics-linreg.nix) { };
 
   streaming-binary = final.callPackage (./pkgs/streaming-binary.nix) { };
diff --git a/pkgs/snap-core.nix b/pkgs/snap-core.nix
new file mode 100644
index 0000000..133f259
--- /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