lets-lens/shell.nix

8 lines
293 B
Nix
Raw Permalink Normal View History

2018-04-04 04:16:48 +02:00
{ nixpkgs ? import <nixpkgs> {}, compiler ? "default" }:
let
inherit (nixpkgs) pkgs;
drv = import ./default.nix { inherit nixpkgs compiler; };
drvWithTools = pkgs.haskell.lib.addBuildDepends drv [ pkgs.cabal-install ];
in
if pkgs.lib.inNixShell then drvWithTools.env else drvWithTools