7 lines
293 B
Nix
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
|