forked from jerith666/elbum
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
49 lines (37 loc) · 1.43 KB
/
shell.nix
File metadata and controls
49 lines (37 loc) · 1.43 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
{ sources ? import nix/sources.nix, compiler ? "ghc927" }:
let
nixpkgs = import sources.nixpkgs {};
in
let
inherit (nixpkgs) pkgs;
haskellPkgs = pkgs.haskell.packages.${compiler};
ghc = haskellPkgs.ghcWithPackages (ps: with ps; [
async JuicyPixels elm-bridge regex-compat parallel extra safe
tasty tasty-golden
]);
lamdera = with nixpkgs.pkgs; import ./nix/lamdera.nix {inherit fetchurl stdenv lib ncurses5 gmp5 zlib autoPatchelfHook;};
# 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 haskellPkgs;
[ ghc
pkgs.elmPackages.elm
ormolu
ghcide
haskell-language-server
haskell-dap
ghci-dap
haskell-debug-adapter
olderIdea
lamdera
pkgs.vscodium
niv ];
shellHook = "echo elm plugin: ${elmPlugin}; eval $(egrep ^export ${ghc}/bin/ghc)";
}