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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
895 B
Nix
Raw Normal View History

2021-09-20 00:43:54 +01:00
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
buildGoModule rec {
pname = "dex";
2022-03-10 05:14:26 +00:00
version = "2.31.0";
src = fetchFromGitHub {
owner = "dexidp";
repo = pname;
2019-07-10 19:18:42 +01:00
rev = "v${version}";
2022-03-10 05:14:26 +00:00
sha256 = "sha256-tr7rs2ymHpMEtNwvLhgEzp94wO/k/oY814NS0N4ONsg=";
};
2022-03-10 05:14:26 +00:00
vendorSha256 = "sha256-l+/qjYokg5zHAFkKxtkdX49HqVW6kfz7OHqs6SRKDYg=";
2019-07-10 19:18:42 +01:00
subPackages = [
"cmd/dex"
];
2021-08-26 07:45:51 +01:00
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
'';
2021-09-20 00:43:54 +01:00
passthru.tests = { inherit (nixosTests) dex-oidc; };
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;
};
}