From 00d346c7e05219105d48b58a6a783d83e4cee994 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Sat, 5 Nov 2022 16:30:25 +0000 Subject: [PATCH] websockets: init at 0.12.7.3 --- manifest.dhall | 1 + overlay.nix | 2 + pkgs/websockets.nix | 105 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 108 insertions(+) create mode 100644 pkgs/websockets.nix diff --git a/manifest.dhall b/manifest.dhall index 898b80e1..af28419a 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -682,6 +682,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "wai" "3.2.3" , callHackage "warp" "3.3.22" , callHackage "warp-tls" "3.3.3" + , callHackage "websockets" "0.12.7.3" , callHackage "witherable" "0.4.2" , callHackage "with-utf8" "1.0.2.3" , callHackage "x509-store" "1.6.9" diff --git a/overlay.nix b/overlay.nix index 6b98efe5..c0e92ba6 100644 --- a/overlay.nix +++ b/overlay.nix @@ -971,6 +971,8 @@ final: prev: with pkgs.haskell.lib; { warp-tls = prev.callPackage (./pkgs/warp-tls.nix) { }; + websockets = prev.callPackage (./pkgs/websockets.nix) { }; + with-utf8 = prev.callPackage (./pkgs/with-utf8.nix) { }; witherable = prev.callPackage (./pkgs/witherable.nix) { }; diff --git a/pkgs/websockets.nix b/pkgs/websockets.nix new file mode 100644 index 00000000..c93003b3 --- /dev/null +++ b/pkgs/websockets.nix @@ -0,0 +1,105 @@ +{ mkDerivation +, async +, attoparsec +, base +, base64-bytestring +, binary +, bytestring +, bytestring-builder +, case-insensitive +, clock +, containers +, criterion +, entropy +, HUnit +, lib +, network +, QuickCheck +, random +, SHA +, streaming-commons +, test-framework +, test-framework-hunit +, test-framework-quickcheck2 +, text +}: +mkDerivation { + pname = "websockets"; + version = "0.12.7.3"; + sha256 = "d3b0a8a0df7ac7c39c2572152ff903af2d5f009627dde4dada6fb81c89057f3c"; + revision = "1"; + editedCabalFile = "1yx97y6jl74vy200y43vjxfyzx338kh10dx8vxkjhr0mfh36wldq"; + isLibrary = true; + isExecutable = true; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + async + attoparsec + base + base64-bytestring + binary + bytestring + bytestring-builder + case-insensitive + clock + containers + entropy + network + random + SHA + streaming-commons + text + ]; + testHaskellDepends = [ + async + attoparsec + base + base64-bytestring + binary + bytestring + bytestring-builder + case-insensitive + clock + containers + entropy + HUnit + network + QuickCheck + random + SHA + streaming-commons + test-framework + test-framework-hunit + test-framework-quickcheck2 + text + ]; + benchmarkHaskellDepends = [ + async + attoparsec + base + base64-bytestring + binary + bytestring + bytestring-builder + case-insensitive + clock + containers + criterion + entropy + network + random + SHA + text + ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "http://jaspervdj.be/websockets"; + description = "A sensible and clean way to write WebSocket-capable servers in Haskell"; + license = lib.licenses.bsd3; + broken = false; +} -- GitLab