Unverified Commit f80a9be9 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

Merge pull request #324509 from camcalaquian/pkg/oathkeeper

Added ory oathkeeper
parents f0a375cf 56295005
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3137,6 +3137,12 @@
    githubId = 7435854;
    name = "Victor Calvert";
  };
  camcalaquian = {
    email = "camcalaquian@gmail.com";
    github = "camcalaquian";
    githubId = 36902555;
    name = "Carl Calaquian";
  };
  camelpunch = {
    email = "me@andrewbruce.net";
    github = "camelpunch";
+46 −0
Original line number Diff line number Diff line
{
  fetchFromGitHub,
  buildGoModule,
  lib,
}:
let
  pname = "oathkeeper";
  version = "0.40.7";
  commit = "c75695837f170334b526359f28967aa33d61bce6";
in
buildGoModule {
  inherit pname version commit;

  src = fetchFromGitHub {
    owner = "ory";
    repo = "oathkeeper";
    rev = "v${version}";
    hash = "sha256-Y5bowCFR9S70ko0vNCwZnhOIKKGdqgcDEBEtZisKEig=";
  };

  vendorHash = "sha256-+hh7MFYGPTaAlU/D0ROv5pw6YvzkAm6URuhP5jdgQtM=";

  tags = [
    "sqlite"
    "json1"
    "hsm"
  ];

  subPackages = [ "." ];

  # Pass versioning information via ldflags
  ldflags = [
    "-s"
    "-w"
    "-X github.com/ory/oathkeeper/internal/driver/config.Version=${version}"
    "-X github.com/ory/oathkeeper/internal/driver/config.Commit=${commit}"
  ];

  meta = {
    description = "Open-source identity and access proxy that authorizes HTTP requests based on sets of rules";
    homepage = "https://www.ory.sh/oathkeeper/";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ camcalaquian ];
    mainProgram = "oathkeeper";
  };
}