-
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathshell.nix
More file actions
24 lines (23 loc) · 712 Bytes
/
shell.nix
File metadata and controls
24 lines (23 loc) · 712 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
let
sources = import ./nix/sources.nix;
pkgs = import sources.nixpkgs {
overlays = [
(_: super: rec {
gh-md-toc-source = super.fetchurl {
url =
"https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc";
sha256 = "1253n0qw3xgikl7gcdicg3vmc3wzz6122bmhmffj1irrachq89fi";
};
gh-md-toc = super.writeScriptBin "gh-md-toc" ''
${super.runtimeShell} ${gh-md-toc-source} "$@"
'';
})
];
};
in pkgs.mkShell {
name = "mvn2nix-shell";
buildInputs = with pkgs; [ jdk11_headless maven gh-md-toc ];
# we need to set M2_HOME to our Maven which uses JDK11
M2_HOME = pkgs.maven;
shellHook = "";
}