|
| 1 | +{ mkDerivation, aeson, amazonka, amazonka-cloudfront, amazonka-core |
| 2 | +, amazonka-s3, amazonka-sqs, base, bytestring, cases, conduit |
| 3 | +, conduit-extra, contravariant, cryptonite, directory, filepath |
| 4 | +, firebase-login, hasql, hpack, http-client, http-client-tls |
| 5 | +, http-types, lens, memory, mime-types, mtl, port-utils, pureMD5 |
| 6 | +, random, resourcet, servant, servant-client, servant-server |
| 7 | +, servant-swagger, servant-swagger-ui, stdenv, swagger2, tagsoup |
| 8 | +, tasty, tasty-hunit, temporary, text, time, unliftio |
| 9 | +, unordered-containers, wai, wai-cors, wai-lambda, warp |
| 10 | +, zip-archive, pkgsMusl |
| 11 | +}: |
| 12 | +mkDerivation { |
| 13 | + pname = "deckdeckgo-handler"; |
| 14 | + version = "0.0.0"; |
| 15 | + src = ./.; |
| 16 | + isLibrary = true; |
| 17 | + isExecutable = true; |
| 18 | + enableLibraryProfiling = false; |
| 19 | + enableExecutableProfiling = false; |
| 20 | + enableSharedExecutables = false; |
| 21 | + enableSharedLibraries = false; |
| 22 | + libraryHaskellDepends = [ |
| 23 | + aeson amazonka amazonka-cloudfront amazonka-core amazonka-s3 |
| 24 | + amazonka-sqs base bytestring cases conduit conduit-extra |
| 25 | + contravariant cryptonite directory filepath firebase-login hasql |
| 26 | + http-client http-types lens memory mime-types mtl pureMD5 random |
| 27 | + resourcet servant servant-server servant-swagger servant-swagger-ui |
| 28 | + swagger2 tagsoup temporary text time unliftio unordered-containers |
| 29 | + wai wai-cors wai-lambda zip-archive |
| 30 | + ]; |
| 31 | + libraryToolDepends = [ hpack ]; |
| 32 | + executableHaskellDepends = [ |
| 33 | + aeson amazonka amazonka-cloudfront amazonka-core amazonka-s3 |
| 34 | + amazonka-sqs base bytestring cases conduit conduit-extra |
| 35 | + contravariant cryptonite directory filepath firebase-login hasql |
| 36 | + http-client http-client-tls http-types lens memory mime-types mtl |
| 37 | + port-utils pureMD5 random resourcet servant servant-client |
| 38 | + servant-server servant-swagger servant-swagger-ui swagger2 tagsoup |
| 39 | + tasty tasty-hunit temporary text time unliftio unordered-containers |
| 40 | + wai wai-cors wai-lambda warp zip-archive |
| 41 | + ]; |
| 42 | + prePatch = "hpack"; |
| 43 | + license = stdenv.lib.licenses.agpl3; |
| 44 | + configureFlags = [ |
| 45 | + "--ghc-option=-optl=-static" |
| 46 | + "--extra-lib-dirs=${pkgsMusl.gmp6.override { withStatic = true; }}/lib" |
| 47 | + "--extra-lib-dirs=${pkgsMusl.zlib.static}/lib" |
| 48 | + "--extra-lib-dirs=${pkgsMusl.libffi.overrideAttrs (old: { dontDisableStatic = true; })}/lib" |
| 49 | + ]; |
| 50 | +} |
0 commit comments