-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
22 lines (22 loc) · 737 Bytes
/
shell.nix
File metadata and controls
22 lines (22 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
let
sources = import ./nix/sources.nix;
pkgs = import sources.nixpkgs { };
gitignoreSource = (import sources."gitignore.nix" { inherit (pkgs) lib;}).gitignoreSource;
project = pkgs.haskellPackages.callCabal2nix "budget" (gitignoreSource ./.) { };
in
pkgs.mkShell {
buildInputs = with pkgs; project.env.nativeBuildInputs ++ [
haskellPackages.cabal-install
haskellPackages.ghcid
haskellPackages.ghcide
haskellPackages.cabal2nix
haskellPackages.hlint
haskellPackages.brittany
];
shellHook = ''
export NIX_GHC="`which ghc`"
export NIX_GHCPKG="`which ghc`/../ghc-pkg"
export NIX_GHC_DOCDIR="`which ghc`/../../share/doc/ghc/html"
export NIX_GHC_LIBDIR=$( $NIX_GHC --print-libdir )
'';
}