nixpkgs/pkgs/servers/dex/default.nix

37 lines
842 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "dex";
version = "2.27.0";
src = fetchFromGitHub {
owner = "dexidp";
repo = pname;
2019-07-10 18:18:42 +00:00
rev = "v${version}";
sha256 = "0n66nm91qcmm00mz8f8x39xqr3y05qxk34fvka53s6xax1gxvxxi";
};
vendorSha256 = "1k87q3ic02n2b632y3lmnclac1iaidmsl3f9py61myi5r02p03lp";
2019-07-10 18:18:42 +00:00
subPackages = [
"cmd/dex"
];
buildFlagsArray = [
"-ldflags=-w -s -X github.com/dexidp/dex/version.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
'';
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;
maintainers = with maintainers; [ benley ];
platforms = platforms.unix;
};
}