Compare commits

..

2 Commits

Author SHA1 Message Date
f5f6c9ced9 Clean up common.cabal 2018-08-29 23:03:32 +03:00
fdbd24a4bf Tools support for nix 2018-08-29 23:03:24 +03:00
3 changed files with 7 additions and 34 deletions

View File

@ -17,46 +17,14 @@ library
, Data.Versioned
-- other-extensions:
build-depends: base >=4.10 && <4.11
, aeson
, asn1-data
, asn1-types
, bytestring
, classy-prelude
, cryptonite
, dhall
, directory
, foreign-store
, generic-lens
, http-api-data
, http-media
, jose
, lens
, lucid
, memory
, monad-logger
, mtl
, pandoc
, pandoc-types
, pem
, process
, resource-pool
, selda
, selda-postgresql
, servant
, servant-auth
, servant-auth-server
, servant-docs
, servant-lucid
, servant-multipart
, servant-server
, text
, transformers
, wai
, warp
, x509
, x509-store
, xml-conduit
, xml-hamlet
hs-source-dirs: src
default-extensions: DeriveGeneric
, NoImplicitPrelude

View File

@ -5,4 +5,8 @@
common = ./common;
backend = ./backend;
};
tools = with haskellPackages; [
ghcid
hasktags
];
}

View File

@ -8,6 +8,7 @@ in
{ packages
, overrides ? _ : _ : {}
, tools ? []
}:
let
@ -26,8 +27,8 @@ let
name = "${n}";
value = nixpkgs.buildEnv {
name = "${n}";
paths = [];
buildInputs = [deps];
paths = tools;
buildInputs = tools ++ [deps];
};
};
shells = nixpkgs.lib.listToAttrs (mapAttrsToList mkShell packages');