Skip to content

Commit dd28af4

Browse files
committed
Create Nix flake devshell
1 parent 859e5c5 commit dd28af4

3 files changed

Lines changed: 49 additions & 1 deletion

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
/.direnv/
12
/nbproject/
23
/target/
34
/Playlists/
45
/test/
56
*.json
67
*.txt
7-
nb*.xml
8+
nb*.xml

flake.lock

Lines changed: 27 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: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-23.11";
4+
};
5+
outputs = {
6+
self,
7+
nixpkgs,
8+
}: let
9+
mapPkgsForEachSystem = callback:
10+
nixpkgs.lib.genAttrs
11+
nixpkgs.lib.systems.flakeExposed
12+
(system: callback nixpkgs.legacyPackages.${system});
13+
in {
14+
devShells = mapPkgsForEachSystem (pkgs: {
15+
default = pkgs.mkShellNoCC {
16+
packages = with pkgs; [openjdk11 maven];
17+
};
18+
});
19+
};
20+
}

0 commit comments

Comments
 (0)