diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-01-19 17:30:47 +0000 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-01-19 17:30:47 +0000 |
commit | 5bd3ab3059b4b38787f707a126f6f99aa5c5fcf4 (patch) | |
tree | d7275d22cd3ccd4d2157db51d1be127ec81fbd69 | |
parent | 32d779b5de22b9ebe321a367a2a2749eef06103c (diff) | |
download | thermoprint-5bd3ab3059b4b38787f707a126f6f99aa5c5fcf4.tar thermoprint-5bd3ab3059b4b38787f707a126f6f99aa5c5fcf4.tar.gz thermoprint-5bd3ab3059b4b38787f707a126f6f99aa5c5fcf4.tar.bz2 thermoprint-5bd3ab3059b4b38787f707a126f6f99aa5c5fcf4.tar.xz thermoprint-5bd3ab3059b4b38787f707a126f6f99aa5c5fcf4.zip |
minor code cleanup
-rw-r--r-- | shell.nix | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,11 +1,12 @@ | |||
1 | { pkgs ? (import <nixpkgs> {}) | 1 | { pkgs ? (import <nixpkgs> {}) |
2 | , compiler ? "ghc7102" | 2 | , compilerName ? "ghc7102" |
3 | }: | 3 | }: |
4 | 4 | ||
5 | let | 5 | let |
6 | ghc = pkgs.haskell.packages.${compiler}.ghcWithHoogle (ps: with ps; [ | 6 | packages = ps: with ps; [ |
7 | cabal-install hlint cabal2nix | 7 | cabal-install hlint cabal2nix |
8 | ] ++ (builtins.attrValues (import ./default.nix {}))); | 8 | ] ++ (builtins.attrValues (import ./default.nix {})); |
9 | ghc = pkgs.haskell.packages.${compilerName}.ghcWithHoogle packages; | ||
9 | in | 10 | in |
10 | pkgs.stdenv.mkDerivation rec { | 11 | pkgs.stdenv.mkDerivation rec { |
11 | name = "thermoprint-env"; | 12 | name = "thermoprint-env"; |