From 63a5c8a5b9bfd5da317c240e16a979fb8e6dc5c6 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 16 Apr 2016 17:19:51 +0200 Subject: Include dependencies in shell --- shell.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index 0396312..32480ee 100644 --- a/shell.nix +++ b/shell.nix @@ -3,8 +3,9 @@ }: let - ghc = haskellPackages.ghcWithPackages (ps: payload ++ (with ps; [ hlint cabal2nix cabal-install ])); + ghc = haskellPackages.ghcWithPackages (ps: payload ++ depends ++ (with ps; [ hlint cabal2nix cabal-install ])); payload = builtins.attrValues (import ./default.nix {}); + depends = builtins.concatLists (builtins.map (x: if builtins.hasAttr "nativeBuildInputs" x then x.nativeBuildInputs else []) (builtins.attrValues (import ./default.nix {}))); in pkgs.stdenv.mkDerivation rec { bareName = "events"; name = "${bareName}-env"; -- cgit v1.2.3