From f1edba93598a558027771dd137dddf281756dee1 Mon Sep 17 00:00:00 2001
From: Max Tomago <noreply@tomagotech.com>
Date: Tue, 29 Nov 2022 14:37:06 +0100
Subject: [PATCH] snap-server: init at 1.1.2.0

---
 horizon.dhall        |   1 +
 overlay.nix          |   2 +
 pkgs/snap-server.nix | 143 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 146 insertions(+)
 create mode 100644 pkgs/snap-server.nix

diff --git a/horizon.dhall b/horizon.dhall
index abd5efc..d662dc6 100644
--- a/horizon.dhall
+++ b/horizon.dhall
@@ -267,6 +267,7 @@ let otherLibraries =
       , callCardanoLedger "small-steps" "libs/small-steps"
       , callCardanoLedger "small-steps-test" "libs/small-steps-test"
       , H.callHackage "snap-core" "1.0.5.0"
+      , H.callHackage "snap-server" "1.1.2.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 7a9507a..fb9405d 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -243,6 +243,8 @@ final: prev: with pkgs.haskell.lib; {
 
   snap-core = final.callPackage (./pkgs/snap-core.nix) { };
 
+  snap-server = final.callPackage (./pkgs/snap-server.nix) { };
+
   statistics-linreg = final.callPackage (./pkgs/statistics-linreg.nix) { };
 
   streaming-binary = final.callPackage (./pkgs/streaming-binary.nix) { };
diff --git a/pkgs/snap-server.nix b/pkgs/snap-server.nix
new file mode 100644
index 0000000..5ae47cf
--- /dev/null
+++ b/pkgs/snap-server.nix
@@ -0,0 +1,143 @@
+{ mkDerivation
+, HUnit
+, HsOpenSSL
+, QuickCheck
+, attoparsec
+, base
+, base16-bytestring
+, blaze-builder
+, bytestring
+, bytestring-builder
+, case-insensitive
+, clock
+, containers
+, criterion
+, deepseq
+, directory
+, filepath
+, http-common
+, http-streams
+, io-streams
+, io-streams-haproxy
+, lib
+, lifted-base
+, monad-control
+, mtl
+, network
+, old-locale
+, openssl-streams
+, parallel
+, random
+, snap-core
+, test-framework
+, test-framework-hunit
+, test-framework-quickcheck2
+, text
+, threads
+, time
+, transformers
+, unix
+, unix-compat
+, vector
+}:
+mkDerivation {
+  pname = "snap-server";
+  version = "1.1.2.0";
+  sha256 = "92306f4148fd9eca06a608b9a8d46a95e928aee231ab320650f5d25854da9e70";
+  revision = "2";
+  editedCabalFile = "0dzsn3y7jnha1jbp0n5igjrg4cb8kggps798rlix60d66iy8r1l2";
+  configureFlags = [ "-fopenssl" ];
+  isLibrary = true;
+  isExecutable = true;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    attoparsec
+    base
+    blaze-builder
+    bytestring
+    bytestring-builder
+    case-insensitive
+    clock
+    containers
+    filepath
+    HsOpenSSL
+    io-streams
+    io-streams-haproxy
+    lifted-base
+    mtl
+    network
+    old-locale
+    openssl-streams
+    snap-core
+    text
+    time
+    transformers
+    unix
+    unix-compat
+    vector
+  ];
+  testHaskellDepends = [
+    attoparsec
+    base
+    base16-bytestring
+    blaze-builder
+    bytestring
+    bytestring-builder
+    case-insensitive
+    clock
+    containers
+    deepseq
+    directory
+    filepath
+    HsOpenSSL
+    http-common
+    http-streams
+    HUnit
+    io-streams
+    io-streams-haproxy
+    lifted-base
+    monad-control
+    mtl
+    network
+    old-locale
+    openssl-streams
+    parallel
+    QuickCheck
+    random
+    snap-core
+    test-framework
+    test-framework-hunit
+    test-framework-quickcheck2
+    text
+    threads
+    time
+    transformers
+    unix
+    unix-compat
+    vector
+  ];
+  benchmarkHaskellDepends = [
+    attoparsec
+    base
+    blaze-builder
+    bytestring
+    bytestring-builder
+    criterion
+    io-streams
+    io-streams-haproxy
+    snap-core
+    transformers
+    vector
+  ];
+  enableLibraryProfiling = true;
+  enableExecutableProfiling = true;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "http://snapframework.com/";
+  description = "A web server for the Snap Framework";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab