-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathshell.nix
More file actions
27 lines (24 loc) · 751 Bytes
/
shell.nix
File metadata and controls
27 lines (24 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc801"}: let
inherit (nixpkgs) pkgs;
haskell = pkgs.haskell.packages.${compiler};
ghc = haskell.ghcWithPackages(ps: [
ps.hdevtools ps.doctest ps.hspec-discover ps.hlint ps.ghc-mod
]);
this = (import ./default.nix { inherit nixpkgs compiler; });
in
pkgs.stdenv.mkDerivation rec {
name = this.pname;
buildInputs = [
ghc
haskell.cabal-install
pkgs.moreutils
] ++ this.env.buildInputs;
shellHook = ''
${this.env.shellHook}
chronic cabal configure \
--package-db=$NIX_GHC_LIBDIR/package.conf.d \
--enable-tests \
--extra-include-dirs=${pkgs.libnotify}/include \
--extra-lib-dirs=${pkgs.libnotify}/lib
'';
}