diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-04-16 17:19:51 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-04-16 17:19:51 +0200 |
commit | 63a5c8a5b9bfd5da317c240e16a979fb8e6dc5c6 (patch) | |
tree | e5e1065f7c30ef742d005af5c422ea484594f090 | |
parent | 9630aab6aedbe5781559d222be08f319b17c9947 (diff) | |
download | events-63a5c8a5b9bfd5da317c240e16a979fb8e6dc5c6.tar events-63a5c8a5b9bfd5da317c240e16a979fb8e6dc5c6.tar.gz events-63a5c8a5b9bfd5da317c240e16a979fb8e6dc5c6.tar.bz2 events-63a5c8a5b9bfd5da317c240e16a979fb8e6dc5c6.tar.xz events-63a5c8a5b9bfd5da317c240e16a979fb8e6dc5c6.zip |
Include dependencies in shell
-rw-r--r-- | shell.nix | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3,8 +3,9 @@ | |||
3 | }: | 3 | }: |
4 | 4 | ||
5 | let | 5 | let |
6 | ghc = haskellPackages.ghcWithPackages (ps: payload ++ (with ps; [ hlint cabal2nix cabal-install ])); | 6 | ghc = haskellPackages.ghcWithPackages (ps: payload ++ depends ++ (with ps; [ hlint cabal2nix cabal-install ])); |
7 | payload = builtins.attrValues (import ./default.nix {}); | 7 | payload = builtins.attrValues (import ./default.nix {}); |
8 | depends = builtins.concatLists (builtins.map (x: if builtins.hasAttr "nativeBuildInputs" x then x.nativeBuildInputs else []) (builtins.attrValues (import ./default.nix {}))); | ||
8 | in pkgs.stdenv.mkDerivation rec { | 9 | in pkgs.stdenv.mkDerivation rec { |
9 | bareName = "events"; | 10 | bareName = "events"; |
10 | name = "${bareName}-env"; | 11 | name = "${bareName}-env"; |