1
1
mirror of https://github.com/qfpl/applied-fp-course.git synced 2024-11-30 12:23:25 +03:00
applied-fp-course/level02/shell.nix
Sean Chalmers 57b72204be Added two stages.
Level 01 : Absolute Starting Point
- possibly too basic

Level 02 : Start specifying an application and filling it out
- needs more detail about the spec we're trying to build

README adjustments.
2017-08-09 13:06:21 +10:00

14 lines
350 B
Nix

{ nixpkgs ? import <nixpkgs> {}, compiler ? "default" }:
let
inherit (nixpkgs) pkgs;
haskellPackages = if compiler == "default"
then pkgs.haskellPackages
else pkgs.haskell.packages.${compiler};
drv = haskellPackages.callPackage ./default.nix {};
in
if pkgs.lib.inNixShell then drv.env else drv