lets-lens/shell.nix
Tony Morris 18d2688e73 nix
2018-04-04 12:16:48 +10:00

7 lines
293 B
Nix

{ 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