2019-08-31 11:12:21 +03:00
|
|
|
{ compiler ? "ghc865"
|
2018-08-26 20:12:12 +03:00
|
|
|
, haddock ? true
|
|
|
|
, test ? true
|
|
|
|
, benchmarks ? false
|
|
|
|
, dev ? false
|
|
|
|
}:
|
|
|
|
with builtins;
|
|
|
|
let
|
|
|
|
default = import ./default.nix {inherit benchmarks compiler dev haddock test;};
|
2018-12-16 20:32:43 +03:00
|
|
|
nixpkgs = import ./nix/nixpkgs.nix { inherit compiler; };
|
2018-08-26 20:12:12 +03:00
|
|
|
in
|
|
|
|
{
|
|
|
|
free-category = if nixpkgs.lib.inNixShell
|
|
|
|
then default.free-category.env
|
|
|
|
else default.free-category;
|
2018-12-10 21:59:39 +03:00
|
|
|
examples = if nixpkgs.lib.inNixShell
|
|
|
|
then default.examples.env
|
|
|
|
else default.examples;
|
2018-08-26 20:12:12 +03:00
|
|
|
}
|