@@ -0,0 +1,32 @@
1+{ lib, buildGoPackage, fetchFromGitHub }:
2+
3+let version = "2.4.1"; in
4+
5+buildGoPackage rec {
6+ name = "dex-${version}";
7+
8+ goPackagePath = "github.com/coreos/dex";
9+
10+ src = fetchFromGitHub {
11+ rev = "v${version}";
12+ owner = "coreos";
13+ repo = "dex";
14+ sha256 = "11qpn3wh74mq16xgl9l50n2v02ffqcd14xccf77j5il04xr764nx";
15+ };
16+
17+ subPackages = [
18+ "cmd/dex"
19+ ];
20+
21+ buildFlagsArray = [
22+ "-ldflags=-w -X ${goPackagePath}/version.Version=${src.rev}"
23+ ];
24+
25+ meta = {
26+ description = "OpenID Connect and OAuth2 identity provider with pluggable connectors";
27+ license = lib.licenses.asl20;
28+ homepage = https://github.com/coreos/dex;
29+ maintainers = with lib.maintainers; [benley];
30+ platforms = lib.platforms.unix;
31+ };
32+}