diff --git a/horizon.dhall b/horizon.dhall index abd5efced4b304a81858072683e98f249941805b..d662dc613ec15710377bddc73fb48148d2723dbf 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 7a9507a57ce055eae561fcb9a66d0f0372c6ca84..fb9405d5647c44d13a346414d10ed0cc6c8e9f73 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 0000000000000000000000000000000000000000..5ae47cf452bc024c470ccb926a898f09b0927f85 --- /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; +}