blob: 16a792f111f0c45d333593b203d2dde515f7d12d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests, testers, dex-oidc }:
buildGoModule rec {
pname = "dex";
version = "2.38.0";
src = fetchFromGitHub {
owner = "dexidp";
repo = pname;
rev = "v${version}";
sha256 = "sha256-nk6llGXJSUA8BWz3S320klMJkOI9BE5oiKgPTuNZVyM=";
};
vendorHash = "sha256-yQaoRV6nMHHNpyc2SgyYGJaeIR72dNAh1U3bPHlYEws=";
subPackages = [
"cmd/dex"
];
ldflags = [
"-w" "-s" "-X main.version=${src.rev}"
];
postInstall = ''
mkdir -p $out/share
cp -r $src/web $out/share/web
'';
passthru.tests = {
inherit (nixosTests) dex-oidc;
version = testers.testVersion {
package = dex-oidc;
command = "dex version";
version = "v${version}";
};
};
meta = with lib; {
description = "OpenID Connect and OAuth2 identity provider with pluggable connectors";
homepage = "https://github.com/dexidp/dex";
license = licenses.asl20;
maintainers = with maintainers; [ benley techknowlogick ];
mainProgram = "dex";
};
}
|