Skip to content

Commit b42e942

Browse files
committed
chore: add nix flake
1 parent 67724e3 commit b42e942

File tree

3 files changed

+92
-0
lines changed

3 files changed

+92
-0
lines changed

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

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: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
description = "A Go development environment for codspeed-go";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs = {
10+
self,
11+
nixpkgs,
12+
flake-utils,
13+
}:
14+
flake-utils.lib.eachDefaultSystem (
15+
system: let
16+
pkgs = import nixpkgs {inherit system;};
17+
in {
18+
devShells.default = pkgs.mkShell {
19+
buildInputs = with pkgs; [
20+
pre-commit
21+
22+
go
23+
gopls
24+
gotools
25+
go-tools
26+
];
27+
};
28+
}
29+
);
30+
}

0 commit comments

Comments
 (0)