1
1
mirror of https://github.com/coot/free-category.git synced 2024-10-26 15:15:00 +03:00
free-category/shell.nix

20 lines
482 B
Nix
Raw Normal View History

{ 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;};
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;
examples = if nixpkgs.lib.inNixShell
then default.examples.env
else default.examples;
2018-08-26 20:12:12 +03:00
}