git.iko.soy/typeable/nixpkgs
on master help sign in
dex: init at 2.4.1

There is already another thing called "dex" that manipulates .desktop files, so I called this one "dex-oidc" in all-packages.nix.

commitd0074286212761d27b86386681e09a4a844a1efc authorBenjamin Staffin <benley@gmail.com> dateSat 3 Jun 2017, 17:34 (9 years ago) parent53835c9
2 files changed+34
pkgs/servers/dex/default.nix+32 pkgs/top-level/all-packages.nix+2
pkgs/servers/dex/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ lib, buildGoPackage, fetchFromGitHub }:
2+
3+let version = "2.4.1"; in
4+
5+buildGoPackage rec {
6+ name = "dex-${version}";
7+
8+ goPackagePath = "github.com/coreos/dex";
9+
10+ src = fetchFromGitHub {
11+ rev = "v${version}";
12+ owner = "coreos";
13+ repo = "dex";
14+ sha256 = "11qpn3wh74mq16xgl9l50n2v02ffqcd14xccf77j5il04xr764nx";
15+ };
16+
17+ subPackages = [
18+ "cmd/dex"
19+ ];
20+
21+ buildFlagsArray = [
22+ "-ldflags=-w -X ${goPackagePath}/version.Version=${src.rev}"
23+ ];
24+
25+ meta = {
26+ description = "OpenID Connect and OAuth2 identity provider with pluggable connectors";
27+ license = lib.licenses.asl20;
28+ homepage = https://github.com/coreos/dex;
29+ maintainers = with lib.maintainers; [benley];
30+ platforms = lib.platforms.unix;
31+ };
32+}
pkgs/top-level/all-packages.nix+2
@@ -10871,6 +10871,8 @@ with pkgs;
1087110871
1087210872 couchpotato = callPackage ../servers/couchpotato {};
1087310873
10874+ dex-oidc = callPackage ../servers/dex { };
10875+
1087410876 dico = callPackage ../servers/dico { };
1087510877
1087610878 dict = callPackage ../servers/dict {