nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 fetchFromGitHub,
3 buildGoModule,
4 lib,
5}:
6let
7 pname = "oathkeeper";
8 version = "0.40.9";
9 commit = "c75695837f170334b526359f28967aa33d61bce6";
10in
11buildGoModule {
12 inherit pname version commit;
13
14 src = fetchFromGitHub {
15 owner = "ory";
16 repo = "oathkeeper";
17 rev = "v${version}";
18 hash = "sha256-R7xKhKF7mhS/vmSpOj+QDL0OBBWnh42X2Kr3TDQxVIo=";
19 };
20
21 vendorHash = "sha256-qETVUpxckZGa41Ll+SZTGcDlImsCvbvGQBcIwuIzSY8=";
22
23 tags = [
24 "sqlite"
25 "json1"
26 "hsm"
27 ];
28
29 subPackages = [ "." ];
30
31 # Pass versioning information via ldflags
32 ldflags = [
33 "-s"
34 "-w"
35 "-X github.com/ory/oathkeeper/internal/driver/config.Version=${version}"
36 "-X github.com/ory/oathkeeper/internal/driver/config.Commit=${commit}"
37 ];
38
39 meta = {
40 description = "Open-source identity and access proxy that authorizes HTTP requests based on sets of rules";
41 homepage = "https://www.ory.sh/oathkeeper/";
42 license = lib.licenses.asl20;
43 maintainers = with lib.maintainers; [ camcalaquian ];
44 mainProgram = "oathkeeper";
45 };
46}