mirror of https://github.com/dexidp/dex.git
14 changed files with 350 additions and 81 deletions
@ -1,7 +1,6 @@
|
||||
if ! has nix_direnv_version || ! nix_direnv_version 3.0.5; then |
||||
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.5/direnvrc" "sha256-RuwIS+QKFj/T9M2TFXScjBsLR6V3A17YVoEW/Q6AZ1w=" |
||||
if ! has nix_direnv_version || ! nix_direnv_version 3.0.6; then |
||||
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.6/direnvrc" "sha256-RYcUJaRMf8oF5LznDrlCXbkOQrywm0HDv1VjYGaJGdM=" |
||||
fi |
||||
|
||||
use flake |
||||
use flake . --impure |
||||
|
||||
dotenv_if_exists |
||||
|
||||
@ -1,27 +1,58 @@
|
||||
{ |
||||
description = "OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors"; |
||||
|
||||
inputs = { |
||||
nixpkgs.url = "nixpkgs/nixos-unstable"; |
||||
flake-utils.url = "github:numtide/flake-utils"; |
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; |
||||
flake-parts.url = "github:hercules-ci/flake-parts"; |
||||
devenv.url = "github:cachix/devenv"; |
||||
}; |
||||
|
||||
outputs = { self, nixpkgs, flake-utils, ... }: |
||||
flake-utils.lib.eachDefaultSystem ( |
||||
system: |
||||
let |
||||
pkgs = nixpkgs.legacyPackages.${system}; |
||||
buildDeps = with pkgs; [ git go_1_21 gnumake ]; |
||||
devDeps = with pkgs; |
||||
buildDeps ++ [ |
||||
golangci-lint |
||||
gotestsum |
||||
protobuf |
||||
protoc-gen-go |
||||
protoc-gen-go-grpc |
||||
kind |
||||
]; |
||||
in |
||||
{ devShell = pkgs.mkShell { buildInputs = devDeps; }; } |
||||
); |
||||
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, |
||||
lib, |
||||
system, |
||||
... |
||||
}: |
||||
rec { |
||||
devenv.shells = { |
||||
default = { |
||||
languages = { |
||||
go = { |
||||
enable = true; |
||||
package = pkgs.go_1_23; |
||||
}; |
||||
}; |
||||
|
||||
packages = with pkgs; [ |
||||
gnumake |
||||
|
||||
golangci-lint |
||||
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; |
||||
}; |
||||
}; |
||||
}; |
||||
} |
||||
|
||||
Loading…
Reference in new issue