blog.nek0.eu/shell.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

2021-06-27 19:37:59 +00:00
# shell.nix
2018-03-30 21:26:13 +00:00
let
2021-06-27 19:37:59 +00:00
project = import ./default.nix;
2018-03-30 21:26:13 +00:00
in
2021-06-27 19:37:59 +00:00
project.shellFor {
# ALL of these arguments are optional.
# List of packages from the project you want to work on in
# the shell (default is all the projects local packages).
#packages = ps: with ps; [
# pkga
# pkgb
#];
# Builds a Hoogle documentation index of all dependencies,
# and provides a "hoogle" command to search the index.
withHoogle = false;
# Some common tools can be added with the `tools` argument
tools = {
cabal = "latest";
hakyll = "latest";
};
# See overlays/tools.nix for more details
# Some you may need to get some other way.
buildInputs = [ (import <nixpkgs> {}).git ];
# Sellect cross compilers to include.
#crossPlatforms = ps: with ps; [
# ghcjs # Adds support for `js-unknown-ghcjs-cabal build` in the shell
# # mingwW64 # Adds support for `x86_64-W64-mingw32-cabal build` in the shell
#];
# Prevents cabal from choosing alternate plans, so that
# *all* dependencies are provided by Nix.
exactDeps = true;
}