diff options
author | Benjamin Staffin <benley@gmail.com> | 2017-06-03 17:34:31 -0400 |
---|---|---|
committer | Benjamin Staffin <benley@gmail.com> | 2017-06-03 17:43:36 -0400 |
commit | d0074286212761d27b86386681e09a4a844a1efc (patch) | |
tree | 0cdac0603d50b7520885b6e433c32d8d4ce4e580 /pkgs/servers/dex | |
parent | 53835c93cb4bc1c6228ee04d6788398a8ab36ab4 (diff) |
dex: init at 2.4.1
There is already another thing called "dex" that manipulates .desktop
files, so I called this one "dex-oidc" in all-packages.nix.
Diffstat (limited to 'pkgs/servers/dex')
-rw-r--r-- | pkgs/servers/dex/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/servers/dex/default.nix b/pkgs/servers/dex/default.nix new file mode 100644 index 000000000000..119d5f03f626 --- /dev/null +++ b/pkgs/servers/dex/default.nix @@ -0,0 +1,32 @@ +{ lib, buildGoPackage, fetchFromGitHub }: + +let version = "2.4.1"; in + +buildGoPackage rec { + name = "dex-${version}"; + + goPackagePath = "github.com/coreos/dex"; + + src = fetchFromGitHub { + rev = "v${version}"; + owner = "coreos"; + repo = "dex"; + sha256 = "11qpn3wh74mq16xgl9l50n2v02ffqcd14xccf77j5il04xr764nx"; + }; + + subPackages = [ + "cmd/dex" + ]; + + buildFlagsArray = [ + "-ldflags=-w -X ${goPackagePath}/version.Version=${src.rev}" + ]; + + meta = { + description = "OpenID Connect and OAuth2 identity provider with pluggable connectors"; + license = lib.licenses.asl20; + homepage = https://github.com/coreos/dex; + maintainers = with lib.maintainers; [benley]; + platforms = lib.platforms.unix; + }; +} |