Skip to content

Commit de6f048

Browse files
authored
Add nix flake for dev shell (#30967)
To try it you need **nix** installed `nix-daemon ` running and your user has to be member of the **nix-users** group. Or use NixOS. then by just: ```sh nix develop -c $SHELL ``` a dedicated development environment with all needed packages will be created.
1 parent 3066114 commit de6f048

File tree

2 files changed

+98
-0
lines changed

2 files changed

+98
-0
lines changed

flake.lock

+61
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
4+
flake-utils.url = "github:numtide/flake-utils";
5+
};
6+
outputs =
7+
{ nixpkgs, flake-utils, ... }:
8+
flake-utils.lib.eachDefaultSystem (
9+
system:
10+
let
11+
pkgs = nixpkgs.legacyPackages.${system};
12+
in
13+
{
14+
devShells.default = pkgs.mkShell {
15+
buildInputs = with pkgs; [
16+
# generic
17+
git
18+
git-lfs
19+
gnumake
20+
gnused
21+
gnutar
22+
gzip
23+
24+
# frontend
25+
nodejs_20
26+
27+
# linting
28+
python312
29+
poetry
30+
31+
# backend
32+
go_1_22
33+
];
34+
};
35+
}
36+
);
37+
}

0 commit comments

Comments
 (0)