-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathshell.nix
More file actions
74 lines (61 loc) · 1.39 KB
/
shell.nix
File metadata and controls
74 lines (61 loc) · 1.39 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
sources ? import nix/sources.nix,
}:
let
nixpkgs = import sources.nixpkgs { };
in
let
inherit (nixpkgs) pkgs;
haskellPkgs = pkgs.haskellPackages;
ghc = haskellPkgs.ghcWithPackages (
ps: with ps; [
async
elm-bridge
extra
JuicyPixels
parallel
parallel-io
regex-compat
safe
tasty
tasty-golden
]
);
# pinned to recent (but cached) ancestor of
# dadc08be jetbrains.idea-{community,ultimate}: 2021.3.2 → 2022.1
olderIdea = (import sources.olderIdeaNixpkgs { }).jetbrains.idea-community;
elmPlugin = pkgs.fetchurl {
url = "https://github.com/utiliteez/intellij-elm/releases/download/v5.0.0-beta21/Elm.IntelliJ-5.0.0-beta21.zip";
hash = "sha256-JkYNZG/H4BMxJDBxlZ14BB7I92qqDo2zcbd90/kILIg=";
};
in
pkgs.stdenv.mkDerivation {
name = "elbum-haskell-env-0";
buildInputs =
with pkgs;
with haskellPkgs;
[
# basic tooling
pkgs.git # disambiguates from haskellPackages.git
# haskell
ghc
cabal-install
ghcide
haskell-language-server
haskell-dap
ghci-dap
haskell-debug-adapter
ormolu
vscodium
# elm
nodejs_22
elmPackages.elm
olderIdea
elmPackages.lamdera
# nix
niv
nixfmt-rfc-style
nixd
];
shellHook = "echo elm plugin: ${elmPlugin}; eval $(egrep ^export ${ghc}/bin/ghc)";
}