-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
61 lines (54 loc) · 1.33 KB
/
Copy pathflake.nix
File metadata and controls
61 lines (54 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
description = "Where - A SQL where clause parser";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachSystem
[
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
]
(
system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
# Pick language/tool versions here (adjust as you like)
go = pkgs.go_1_25;
# Common build utils
buildUtils = with pkgs; [
go-task
golangci-lint
goreleaser
];
in
{
# `nix develop` drops you into this shell
devShells.default = pkgs.mkShell {
packages = [
go
buildUtils
];
CGO_ENABLED = "0";
# Helpful prompt when you enter the shell
shellHook = ''
echo "▶ Dev shell ready on ${system}"
echo " Go: $(${go}/bin/go version)"
'';
};
# `nix fmt` to format nix files in this repo
formatter = pkgs.nixfmt-tree;
}
);
}