mirror of https://github.com/dexidp/dex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.3 KiB
56 lines
1.3 KiB
{ |
|
inputs = { |
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; |
|
flake-parts.url = "github:hercules-ci/flake-parts"; |
|
devenv.url = "github:cachix/devenv"; |
|
}; |
|
|
|
outputs = |
|
inputs@{ flake-parts, ... }: |
|
flake-parts.lib.mkFlake { inherit inputs; } { |
|
imports = [ |
|
inputs.devenv.flakeModule |
|
]; |
|
|
|
systems = [ |
|
"x86_64-linux" |
|
"x86_64-darwin" |
|
"aarch64-darwin" |
|
"aarch64-linux" |
|
]; |
|
|
|
perSystem = |
|
{ pkgs, ... }: |
|
rec { |
|
devenv.shells = { |
|
default = { |
|
languages = { |
|
go = { |
|
enable = true; |
|
package = pkgs.go_1_25; |
|
}; |
|
}; |
|
|
|
packages = with pkgs; [ |
|
gnumake |
|
|
|
# golangci-lint |
|
(golangci-lint.override (o: { |
|
buildGoModule = pkgs.buildGo125Module; |
|
})) |
|
gotestsum |
|
protobuf |
|
protoc-gen-go |
|
protoc-gen-go-grpc |
|
kind |
|
]; |
|
|
|
# https://github.com/cachix/devenv/issues/528#issuecomment-1556108767 |
|
containers = pkgs.lib.mkForce { }; |
|
}; |
|
|
|
ci = devenv.shells.default; |
|
}; |
|
}; |
|
}; |
|
}
|
|
|