1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 17:41:12 +00:00
nixpkgs/pkgs/servers/dex/default.nix

37 lines
811 B
Nix
Raw Normal View History

2019-09-21 10:26:00 +01:00
{ lib, buildGoPackage, fetchFromGitHub }:
2019-09-21 10:26:00 +01:00
buildGoPackage rec {
pname = "dex";
2019-07-10 19:18:42 +01:00
version = "2.17.0";
src = fetchFromGitHub {
owner = "dexidp";
repo = pname;
2019-07-10 19:18:42 +01:00
rev = "v${version}";
sha256 = "1z94svpiwrs64m83gpfnniv0ac1fnmvywvl05f20ind1wlf8bvwn";
};
2019-09-21 10:26:00 +01:00
goPackagePath = "github.com/dexidp/dex";
2019-07-10 19:18:42 +01:00
subPackages = [
"cmd/dex"
];
buildFlagsArray = [
2019-07-10 19:18:42 +01:00
"-ldflags=-w -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;
};
}