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 , Data.Versioned
-- other-extensions: -- other-extensions:
build-depends: base >=4.10 && <4.11 build-depends: base >=4.10 && <4.11
, aeson
, asn1-data
, asn1-types
, bytestring
, classy-prelude , classy-prelude
, cryptonite
, dhall , dhall
, directory
, foreign-store , foreign-store
, generic-lens , generic-lens
, http-api-data
, http-media
, jose
, lens , lens
, lucid
, memory
, monad-logger
, mtl , 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 , text
, transformers , transformers
, wai
, warp
, x509
, x509-store
, xml-conduit
, xml-hamlet
hs-source-dirs: src hs-source-dirs: src
default-extensions: DeriveGeneric default-extensions: DeriveGeneric
, NoImplicitPrelude , NoImplicitPrelude

View File

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

View File

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