-
-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathflake.nix
More file actions
39 lines (36 loc) · 898 Bytes
/
Copy pathflake.nix
File metadata and controls
39 lines (36 loc) · 898 Bytes
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
{
inputs = {
alex.url = "github:AlexanderGrooff/nix-flakes";
};
outputs = {
self,
flake-utils,
nixpkgs,
alex,
}:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = import nixpkgs {inherit system;};
in {
devShells.default = pkgs.mkShell {
nativeBuildInputs = [
pkgs.go_1_23
pkgs.pre-commit
pkgs.golangci-lint
# Add other Go tools or dependencies here if needed, e.g.:
pkgs.gopls
pkgs.delve
pkgs.goreleaser
pkgs.air
];
# Disable hardening for cgo
hardeningDisable = [ "all" ];
};
packages.default = pkgs.buildGoModule {
name = "mermaid-ascii";
src = ./.;
vendorHash = "sha256-aB9sbTtlHbptM2995jizGFtSmEIg3i8zWkXz1zzbIek=";
};
}
);
}