-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
42 lines (38 loc) · 1.16 KB
/
flake.nix
File metadata and controls
42 lines (38 loc) · 1.16 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
{
description = "Spage Go project with Temporal";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
nativeBuildInputs = [
pkgs.go_1_24
pkgs.temporal-cli
pkgs.golangci-lint
pkgs.ansible
pkgs.python312Packages.distutils
pkgs.python312Packages.setuptools
pkgs.pre-commit
# Add other Go tools or dependencies here if needed, e.g.:
pkgs.gopls
pkgs.delve
pkgs.goreleaser
];
# Disable hardening for cgo
hardeningDisable = [ "all" ];
# Set environment variables if necessary
shellHook = ''
export ANSIBLE_COLLECTIONS_PATH=./.ansible
if [ ! -d ./.ansible ]; then
ansible-galaxy collection install community.general --force
fi
'';
};
});
}