From 5bd3ab3059b4b38787f707a126f6f99aa5c5fcf4 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 19 Jan 2016 17:30:47 +0000 Subject: minor code cleanup --- shell.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/shell.nix b/shell.nix index 9c4dbfe..c48100d 100644 --- a/shell.nix +++ b/shell.nix @@ -1,11 +1,12 @@ { pkgs ? (import {}) -, compiler ? "ghc7102" +, compilerName ? "ghc7102" }: let - ghc = pkgs.haskell.packages.${compiler}.ghcWithHoogle (ps: with ps; [ + packages = ps: with ps; [ cabal-install hlint cabal2nix - ] ++ (builtins.attrValues (import ./default.nix {}))); + ] ++ (builtins.attrValues (import ./default.nix {})); + ghc = pkgs.haskell.packages.${compilerName}.ghcWithHoogle packages; in pkgs.stdenv.mkDerivation rec { name = "thermoprint-env"; -- cgit v1.2.3