-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1447 from digitallyinduced/s0kil/compression-midd…
…leware Compression Middleware Guide
- Loading branch information
Showing
4 changed files
with
122 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ mkDerivation | ||
, base | ||
, bytestring | ||
, fetchgit | ||
, ghc-prim | ||
, lib | ||
, QuickCheck | ||
, quickcheck-instances | ||
, tasty | ||
, tasty-hunit | ||
, tasty-quickcheck | ||
}: | ||
let | ||
nixpkgs = import <nixpkgs> { }; | ||
in | ||
mkDerivation { | ||
pname = "hs-brotli"; | ||
version = "0.1.0.0"; | ||
src = fetchgit { | ||
url = "https://github.com/iand675/hs-brotli"; | ||
sha256 = "1i4qaqn79m4jcg16pdm222xy6x97r5fv8ikyykf1nl79hs0dajrh"; | ||
rev = "d7bce54b265883fb30a14d39d00cbf1c1308b2b1"; | ||
fetchSubmodules = true; | ||
}; | ||
postUnpack = "sourceRoot+=/brotli; echo source root reset to $sourceRoot"; | ||
libraryHaskellDepends = [ base bytestring ghc-prim ]; | ||
librarySystemDepends = [ nixpkgs.brotli ]; | ||
libraryToolDepends = [ nixpkgs.pkg-config ]; | ||
libraryPkgconfigDepends = [ nixpkgs.brotli ]; | ||
testHaskellDepends = [ base bytestring QuickCheck quickcheck-instances tasty tasty-hunit tasty-quickcheck ]; | ||
homepage = "https://github.com/iand675/hs-brotli#readme"; | ||
description = "Compression and decompression in the brotli format"; | ||
license = lib.licenses.bsd3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ mkDerivation | ||
, base | ||
, binary | ||
, bytestring | ||
, directory | ||
, fetchgit | ||
, filepath | ||
, hs-brotli | ||
, http-types | ||
, lib | ||
, mtl | ||
, tasty | ||
, tasty-hspec | ||
, tasty-hunit | ||
, unix | ||
, wai | ||
, wai-extra | ||
}: | ||
mkDerivation { | ||
pname = "wai-middleware-brotli"; | ||
version = "0.1.0.0"; | ||
src = fetchgit { | ||
url = "https://github.com/iand675/hs-brotli"; | ||
sha256 = "1i4qaqn79m4jcg16pdm222xy6x97r5fv8ikyykf1nl79hs0dajrh"; | ||
rev = "d7bce54b265883fb30a14d39d00cbf1c1308b2b1"; | ||
fetchSubmodules = true; | ||
}; | ||
postUnpack = "sourceRoot+=/wai-middleware-brotli; echo source root reset to $sourceRoot"; | ||
libraryHaskellDepends = [ base binary bytestring directory filepath hs-brotli http-types unix wai ]; | ||
testHaskellDepends = [ base bytestring hs-brotli http-types mtl tasty tasty-hspec tasty-hunit wai wai-extra ]; | ||
homepage = "https://github.com/iand675/hs-brotli#readme"; | ||
description = "WAI middleware for brotli compression"; | ||
license = lib.licenses.bsd3; | ||
} |