Change `shell.nix` to stay in sync with `release.nix` (#133)

This simplifies the `shell.nix` to reuse the `dhall` derivation from
`release.nix` and also ensures that they stay in sync with one another
This commit is contained in:
Gabriel Gonzalez 2017-09-12 13:49:41 -07:00 committed by bosu
parent af807d9766
commit b6824330da
1 changed files with 1 additions and 15 deletions

View File

@ -1,15 +1 @@
{ nixpkgs ? import <nixpkgs> {}, compiler ? "default" }:
let
inherit (nixpkgs) pkgs;
haskellPackages = if compiler == "default"
then pkgs.haskellPackages
else pkgs.haskell.packages.${compiler};
drv = haskellPackages.callPackage ./. {};
in
if pkgs.lib.inNixShell then drv.env else drv
(import ./release.nix).dhall.env