3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/dex/default.nix

37 lines
840 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "dex";
2021-05-19 15:38:21 +01:00
version = "2.28.1";
src = fetchFromGitHub {
owner = "dexidp";
repo = pname;
2019-07-10 19:18:42 +01:00
rev = "v${version}";
2021-05-19 15:38:21 +01:00
sha256 = "sha256-MdrkQ4qclylkan8y845BjLiL+W16iqRuNMmvWsKo+zw=";
};
2021-05-19 15:38:21 +01:00
vendorSha256 = "sha256-rAqqvnP72BQY/qbSvqNzxh2ZUlF/rP0MR/+yqJai+KY=";
2019-07-10 19:18:42 +01:00
subPackages = [
"cmd/dex"
];
buildFlagsArray = [
"-ldflags=-w -s -X github.com/dexidp/dex/version.Version=${src.rev}"
];
2019-04-25 23:36:27 +01:00
postInstall = ''
mkdir -p $out/share
cp -r $src/web $out/share/web
2019-04-25 23:36:27 +01:00
'';
2019-07-10 19:18:42 +01:00
meta = with lib; {
description = "OpenID Connect and OAuth2 identity provider with pluggable connectors";
2019-07-10 19:18:42 +01:00
homepage = "https://github.com/dexidp/dex";
license = licenses.asl20;
maintainers = with maintainers; [ benley ];
platforms = platforms.unix;
};
}