mirror of https://github.com/dexidp/dex.git
8 changed files with 140 additions and 81 deletions
@ -0,0 +1,6 @@
|
||||
if ! has nix_direnv_version || ! nix_direnv_version 1.5.0; then |
||||
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/1.5.0/direnvrc" "sha256-carKk9aUFHMuHt+IWh74hFj58nY4K3uywpZbwXX0BTI=" |
||||
fi |
||||
use flake |
||||
|
||||
dotenv_if_exists |
||||
@ -0,0 +1,42 @@
|
||||
{ |
||||
"nodes": { |
||||
"flake-utils": { |
||||
"locked": { |
||||
"lastModified": 1634851050, |
||||
"narHash": "sha256-N83GlSGPJJdcqhUxSCS/WwW5pksYf3VP1M13cDRTSVA=", |
||||
"owner": "numtide", |
||||
"repo": "flake-utils", |
||||
"rev": "c91f3de5adaf1de973b797ef7485e441a65b8935", |
||||
"type": "github" |
||||
}, |
||||
"original": { |
||||
"owner": "numtide", |
||||
"repo": "flake-utils", |
||||
"type": "github" |
||||
} |
||||
}, |
||||
"nixpkgs": { |
||||
"locked": { |
||||
"lastModified": 1636800699, |
||||
"narHash": "sha256-SwbyVxXffu3G2ulJIbTf0iQfqhbGbdml4Dyv5j9BiAI=", |
||||
"owner": "NixOS", |
||||
"repo": "nixpkgs", |
||||
"rev": "2fa862644fc15ecb525eb8cd0a60276f1c340c7c", |
||||
"type": "github" |
||||
}, |
||||
"original": { |
||||
"id": "nixpkgs", |
||||
"ref": "nixos-unstable", |
||||
"type": "indirect" |
||||
} |
||||
}, |
||||
"root": { |
||||
"inputs": { |
||||
"flake-utils": "flake-utils", |
||||
"nixpkgs": "nixpkgs" |
||||
} |
||||
} |
||||
}, |
||||
"root": "root", |
||||
"version": 7 |
||||
} |
||||
@ -0,0 +1,25 @@
|
||||
{ |
||||
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"; |
||||
}; |
||||
|
||||
outputs = { self, nixpkgs, flake-utils, ... }: |
||||
flake-utils.lib.eachDefaultSystem (system: |
||||
let |
||||
pkgs = nixpkgs.legacyPackages.${system}; |
||||
buildDeps = with pkgs; [ git go_1_17 gnumake ]; |
||||
devDeps = with pkgs; |
||||
buildDeps ++ [ |
||||
golangci-lint |
||||
gotestsum |
||||
protobuf |
||||
protoc-gen-go |
||||
protoc-gen-go-grpc |
||||
kind |
||||
]; |
||||
in |
||||
{ devShell = pkgs.mkShell { buildInputs = devDeps; }; }); |
||||
} |
||||
@ -1,30 +0,0 @@
|
||||
#!/bin/bash -e |
||||
|
||||
# This is a script to download protoc. Rather than depending on the version on |
||||
# a developer's machine, always download a specific version. |
||||
|
||||
VERSION="3.1.0" |
||||
|
||||
if [ $# -ne 1 ]; then |
||||
echo "Usage: ./get-protoc [dest]" |
||||
exit 2 |
||||
fi |
||||
|
||||
# Use the go tool to determine OS. |
||||
OS=$( go env GOOS ) |
||||
|
||||
if [ "$OS" = "darwin" ]; then |
||||
OS="osx" |
||||
fi |
||||
|
||||
mkdir -p bin |
||||
|
||||
# TODO(ericchiang): Architectures other than amd64? |
||||
ZIP="protoc-${VERSION}-${OS}-x86_64.zip" |
||||
URL="https://github.com/google/protobuf/releases/download/v${VERSION}/${ZIP}" |
||||
|
||||
wget ${URL} |
||||
# Unpack the protoc binary. Later we might want to grab additional data. |
||||
unzip -p ${ZIP} bin/protoc > $1 |
||||
chmod +x $1 |
||||
rm ${ZIP} |
||||
Loading…
Reference in new issue