forked from underscoreio/essential-scala-code
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.nix
42 lines (39 loc) · 967 Bytes
/
default.nix
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
{ }:
let
pkgs = import <nixpkgs> { };
pname = "ScalaWorkshop";
vsextensions = (with pkgs.vscode-extensions; [
ms-vsliveshare.vsliveshare
scalameta.metals
scala-lang.scala
vscodevim.vim
]) ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [{
name = "markdown-mermaid";
publisher = "bierner";
version = "1.9.1";
sha256 = "155m0xrdqjg56fbzvfb8ii313qshr55jbpnc1q9kcvw78dcq81b1";
} {
name = "vscode-mermaid-editor";
publisher = "tomoyukim";
version = "0.9.2";
sha256 = "06ggg0zm5dhmvq46hsi2s6wpgdqzsymh7lpclk2cgbkkw16yz7a7";
}];
vscode-workshop = pkgs.vscode-with-extensions.override {
vscodeExtensions = vsextensions;
};
in
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
ammonite
git zsh
scala sbt
visualvm
jdk11
vscode-workshop
];
installPhase= ''
'';
shellHook=''
echo --- Welcome to the ${pname}! ---
'';
}