-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathshell.nix
More file actions
33 lines (26 loc) · 698 Bytes
/
shell.nix
File metadata and controls
33 lines (26 loc) · 698 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
28
29
30
31
32
33
{ rosetta ? false }:
let
sources = import ./nix/sources.nix;
overrides = if rosetta then { system = "x86_64-darwin"; } else {};
nixos = import sources.nixos overrides;
darwin = import sources.darwin overrides;
unstable = import sources.unstable overrides;
pkgs = if darwin.stdenv.isDarwin then darwin else nixos;
ghc = unstable.ghc;
deps = {
haskell = [
unstable.stack
unstable.stylish-haskell
];
};
in
unstable.haskell.lib.buildStackProject {
inherit ghc;
name = "Fisson";
nativeBuildInputs = builtins.concatLists [
deps.haskell
];
shellHook = ''
export LANG=C.UTF8
'';
}