diff --git a/horizon.dhall b/horizon.dhall index d2b57da3f96d07dc22f464045b7d1fc745f15043..dd9a0fcb16bfe6ec6520ae5e1ea6488971acd28d 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 77bf96c97e43b61bc4d79a94b792dca9b240e3c7..5ae47032e2c145f8553465b161125846d4f80dbb 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 0000000000000000000000000000000000000000..133f2599b9c19082bf57745cd505d97aa7f870d6 --- /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; +}