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:
parent
af807d9766
commit
b6824330da
16
shell.nix
16
shell.nix
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue