summaryrefslogtreecommitdiff
path: root/bar.nix
blob: f9b181e922d8ff145cfa628525c42a4bd4bff5ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ mkDerivation, aeson, base, bytestring, classy-prelude
, classy-prelude-yesod, conduit, containers, fast-logger
, file-embed, foreign-store, hashids, hpack, http-conduit, lens
, monad-logger, mtl, persistent, persistent-postgresql
, persistent-template, shakespeare, stdenv, systemd
, template-haskell, text, time, unordered-containers, vector, wai
, wai-extra, wai-logger, warp, yaml, yesod, yesod-core, yesod-form
, yesod-static, thermoprint-client ? null 
}:
mkDerivation {
  pname = "bar";
  version = "0.6.6";
  src = ./.;
  isLibrary = true;
  isExecutable = true;
  libraryHaskellDepends = [
    aeson base bytestring classy-prelude classy-prelude-yesod conduit
    containers fast-logger file-embed hashids http-conduit lens
    monad-logger mtl persistent persistent-postgresql
    persistent-template shakespeare systemd template-haskell text time
    unordered-containers vector wai wai-extra wai-logger warp yaml
    yesod yesod-core yesod-form yesod-static
  ] ++ if thermoprint-client == null then [] else [ thermoprint-client ];
  configureFlags = if thermoprint-client != null then [ "thermoprint" ] else [];
  libraryToolDepends = [ hpack ];
  executableHaskellDepends = [ base foreign-store warp ];
  doHaddock = false;
  preConfigure = "hpack";
  license = stdenv.lib.licenses.unfree;
  hydraPlatforms = stdenv.lib.platforms.none;
}