nixpkgs-suyu/pkgs/servers/dex/default.nix
nyanloutre bd488d9814
dex-oidc: 2.4.1 -> 2.16.0
repo organisation changed from coreos to dexidp
2019-04-26 00:02:43 +02:00

31 lines
720 B
Nix

{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "dex";
version = "2.16.0";
goPackagePath = "github.com/dexidp/dex";
src = fetchFromGitHub {
rev = "v${version}";
owner = "dexidp";
repo = pname;
sha256 = "0w8nl7inqp4grbaq320dgynmznbrln8vihd799dwb2cx86laxsi1";
};
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/dexidp/dex;
maintainers = with lib.maintainers; [benley];
platforms = lib.platforms.unix;
};
}