forked from martinhoefling/terraform-provider-hostingde
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
40 lines (36 loc) · 1.08 KB
/
flake.nix
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
{
description = "hosting.de terraform provider";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
inputs.nixpkgs-2305.url = "github:nixos/nixpkgs/nixos-23.05";
inputs.devshell.url = "github:numtide/devshell";
inputs.flake-parts.url = "github:hercules-ci/flake-parts";
outputs = inputs@{ self, flake-parts, devshell, nixpkgs, nixpkgs-2305 }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
devshell.flakeModule
];
systems = [
"x86_64-linux"
];
perSystem = { pkgs, ... }: {
devshells.default = {
# Add additional packages you'd like to be available in your devshell
# PATH here
packages = with pkgs; [
go
goreleaser
errcheck
go-tools
gnumake
golangci-lint
gopls
inputs.nixpkgs-2305.legacyPackages.${pkgs.system}.terraform
];
bash.extra = ''
export GOPATH=~/.local/share/go
export PATH=$GOPATH/bin:$PATH
'';
};
};
};
}