dex-oidc: 2.16.0 -> 2.17.0 (#64592)

This commit is contained in:
xrelkd 2019-07-11 02:18:42 +08:00 committed by Benjamin Staffin
parent 4a633b5618
commit 61ac7bd917

@ -1,36 +1,36 @@
{ lib, buildGoPackage, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub }:
buildGoPackage rec {
buildGoModule rec {
pname = "dex";
version = "2.16.0";
goPackagePath = "github.com/dexidp/dex";
version = "2.17.0";
src = fetchFromGitHub {
rev = "v${version}";
owner = "dexidp";
repo = pname;
sha256 = "0w8nl7inqp4grbaq320dgynmznbrln8vihd799dwb2cx86laxsi1";
rev = "v${version}";
sha256 = "1z94svpiwrs64m83gpfnniv0ac1fnmvywvl05f20ind1wlf8bvwn";
};
modSha256 = "043sjq547nwg5v8708nhij0g7d2j28pyn676fgbnpps35ymnywfi";
subPackages = [
"cmd/dex"
];
buildFlagsArray = [
"-ldflags=-w -X ${goPackagePath}/version.Version=${src.rev}"
"-ldflags=-w -X github.com/dexidp/dex/version.Version=${src.rev}"
];
postInstall = ''
mkdir -p $out/share
cp -r go/src/${goPackagePath}/web $out/share/web
cp -r $src/web $out/share/web
'';
meta = {
meta = with lib; {
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;
homepage = "https://github.com/dexidp/dex";
license = licenses.asl20;
maintainers = with maintainers; [ benley ];
platforms = platforms.unix;
};
}