Skip to content

Commit abc92df

Browse files
authored
Add nix flake for dev shell (#30967) (#31310)
Backport #30967
1 parent 1dc8a66 commit abc92df

File tree

2 files changed

+98
-0
lines changed

2 files changed

+98
-0
lines changed

flake.lock

Lines changed: 61 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: 37 additions & 0 deletions
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)