From 2cb80224e382e046e59d65137cd5403974a5759a Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 15 Sep 2018 15:25:16 +0200 Subject: integrate flag into nix --- bar.nix | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'bar.nix') diff --git a/bar.nix b/bar.nix index 9849765..f9b181e 100644 --- a/bar.nix +++ b/bar.nix @@ -1,12 +1,11 @@ -{ mkDerivation, aeson, base, bytestring, case-insensitive -, classy-prelude, classy-prelude-conduit, classy-prelude-yesod -, conduit, containers, data-default, directory, fast-logger -, file-embed, hashids, hjsmin, http-conduit, lens, monad-control +{ 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, safe, shakespeare, stdenv, systemd -, template-haskell, text, thermoprint-client, time -, unordered-containers, vector, wai, wai-extra, wai-logger, warp -, yaml, yesod, yesod-auth, yesod-core, yesod-form, yesod-static +, 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"; @@ -15,17 +14,18 @@ mkDerivation { isLibrary = true; isExecutable = true; libraryHaskellDepends = [ - aeson base bytestring case-insensitive classy-prelude - classy-prelude-conduit classy-prelude-yesod conduit containers - data-default directory fast-logger file-embed hashids hjsmin - http-conduit lens monad-control monad-logger mtl persistent - persistent-postgresql persistent-template safe shakespeare systemd - template-haskell text thermoprint-client time unordered-containers - vector wai wai-extra wai-logger warp yaml yesod yesod-auth - yesod-core yesod-form yesod-static - ]; - executableHaskellDepends = [ base ]; + 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; } -- cgit v1.2.3