yammat/pkg.nix

47 lines
1.9 KiB
Nix
Raw Normal View History

{ mkDerivation, aeson, base, base64-bytestring, blaze-builder
2019-04-16 15:22:37 +00:00
, blaze-markup, bytestring, classy-prelude, classy-prelude-conduit
, classy-prelude-yesod, conduit, conduit-extra, containers
, cryptohash, data-default, directory, fast-logger, file-embed
, HDBC, HDBC-postgresql, hjsmin, hspec, http-conduit, JuicyPixels
, JuicyPixels-scale-dct, mime-mail, monad-control, monad-logger
, persistent, persistent-mysql, persistent-postgresql
, persistent-template, resourcet, safe, safe-exceptions
2021-03-12 00:41:40 +00:00
, shakespeare, split, lib, template-haskell, text, time
2019-04-16 15:22:37 +00:00
, transformers, unordered-containers, vector, wai, wai-extra
, wai-logger, warp, yaml, yesod, yesod-auth, yesod-core, yesod-form
, yesod-static, yesod-test
}:
mkDerivation {
pname = "yammat";
version = "0.0.8";
src = builtins.filterSource (
path: type: builtins.match ".*\.nix" path == null
) ./.;
2019-04-16 15:22:37 +00:00
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
aeson base base64-bytestring blaze-builder blaze-markup bytestring
classy-prelude classy-prelude-conduit classy-prelude-yesod conduit
2019-04-16 15:22:37 +00:00
conduit-extra containers cryptohash data-default directory
fast-logger file-embed HDBC HDBC-postgresql hjsmin http-conduit
JuicyPixels JuicyPixels-scale-dct mime-mail monad-control
monad-logger persistent persistent-postgresql persistent-template
safe safe-exceptions shakespeare split template-haskell text time
unordered-containers vector wai wai-extra wai-logger warp yaml
yesod yesod-auth yesod-core yesod-form yesod-static
];
executableHaskellDepends = [ base ];
testHaskellDepends = [
base classy-prelude classy-prelude-yesod hspec monad-logger
2019-04-16 15:22:37 +00:00
persistent persistent-mysql resourcet transformers yesod yesod-core
yesod-test
];
doCheck = false;
doHaddock = false;
2021-03-12 00:41:40 +00:00
license = lib.licenses.agpl3;
postInstall = ''
cp -ar config static $out/
ln -s /tmp/yammat_session_key.aes $out/config/client_session_key.aes
'';
2019-04-16 15:22:37 +00:00
}