1
1
mirror of https://github.com/qfpl/applied-fp-course.git synced 2024-09-11 04:25:40 +03:00
applied-fp-course/shell.nix
2020-01-23 14:49:44 +10:00

28 lines
684 B
Nix

{ nixpkgs ? import ./nix/nixpkgs.nix
, compiler ? "default"
}:
let
inherit (nixpkgs) pkgs;
# Grab our course derivation
course = import ./. { inherit nixpkgs compiler; };
# Override the basic derivation so we can have a more fully feature
# environment for hacking on the course material
courseDevEnv = (pkgs.haskell.lib.addBuildTools course
[ # Cabal
pkgs.cabal-install
# Include the SQLite Database application
pkgs.sqlite
# 'ghcid' auto reloading tool
pkgs.haskellPackages.ghcid
]
# We don't want nix to build the thing, we want the environment so we can
# build the thing.
).env;
in
# Fly, my pretties!
courseDevEnv