Skip to content

Commit 848ac85

Browse files
committed
Add basic nix dev setup
1 parent 81f4f0b commit 848ac85

File tree

2 files changed

+170
-0
lines changed

2 files changed

+170
-0
lines changed

flake.lock

Lines changed: 130 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
4+
devshell-tools.url = "github:eikek/devshell-tools";
5+
flake-utils.url = "github:numtide/flake-utils";
6+
};
7+
8+
outputs = {
9+
self,
10+
nixpkgs,
11+
flake-utils,
12+
devshell-tools,
13+
}:
14+
{
15+
}
16+
// flake-utils.lib.eachDefaultSystem (system: let
17+
pkgs = nixpkgs.legacyPackages.${system};
18+
ciPkgs = with pkgs; [
19+
devshell-tools.packages.${system}.sbt17
20+
jdk17
21+
];
22+
devshellPkgs =
23+
ciPkgs
24+
++ (with pkgs; [
25+
jq
26+
scala-cli
27+
]);
28+
in {
29+
formatter = pkgs.alejandra;
30+
31+
devShells = {
32+
default = pkgs.mkShellNoCC {
33+
buildInputs = (builtins.attrValues devshell-tools.legacyPackages.${system}.cnt-scripts) ++ devshellPkgs;
34+
};
35+
ci = pkgs.mkShellNoCC {
36+
buildInputs = ciPkgs;
37+
};
38+
};
39+
});
40+
}

0 commit comments

Comments
 (0)