nixpkgs/pkgs/servers/dex/default.nix

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

46 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, nixosTests, testers, dex-oidc }:
buildGoModule rec {
pname = "dex";
2024-04-10 14:53:22 +00:00
version = "2.39.1";
src = fetchFromGitHub {
owner = "dexidp";
repo = pname;
2019-07-10 18:18:42 +00:00
rev = "v${version}";
2024-04-10 14:53:22 +00:00
sha256 = "sha256-+P3KYowZmtgZP3i0D+GFaAqgWDqJ8sxI4LyDUOM+J38=";
};
2024-04-10 14:53:22 +00:00
vendorHash = "sha256-NQXsptpRNgRuEeh2ft/dbqcZqO/d1KZ19wc/7To0xCM=";
2019-07-10 18:18:42 +00:00
subPackages = [
"cmd/dex"
];
2021-08-26 06:45:51 +00:00
ldflags = [
"-w" "-s" "-X main.version=${src.rev}"
];
2019-04-25 22:36:27 +00:00
postInstall = ''
mkdir -p $out/share
cp -r $src/web $out/share/web
2019-04-25 22:36:27 +00:00
'';
passthru.tests = {
inherit (nixosTests) dex-oidc;
version = testers.testVersion {
package = dex-oidc;
command = "dex version";
version = "v${version}";
};
};
2021-09-19 23:43:54 +00:00
2019-07-10 18:18:42 +00:00
meta = with lib; {
description = "OpenID Connect and OAuth2 identity provider with pluggable connectors";
2019-07-10 18:18:42 +00:00
homepage = "https://github.com/dexidp/dex";
license = licenses.asl20;
2022-05-26 19:30:50 +00:00
maintainers = with maintainers; [ benley techknowlogick ];
2023-11-27 01:17:53 +00:00
mainProgram = "dex";
};
}