depot/third_party/nixpkgs/pkgs/by-name/oa/oathkeeper/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

46 lines
1 KiB
Nix

{
fetchFromGitHub,
buildGoModule,
lib,
}:
let
pname = "oathkeeper";
version = "0.40.9";
commit = "c75695837f170334b526359f28967aa33d61bce6";
in
buildGoModule {
inherit pname version commit;
src = fetchFromGitHub {
owner = "ory";
repo = "oathkeeper";
rev = "v${version}";
hash = "sha256-R7xKhKF7mhS/vmSpOj+QDL0OBBWnh42X2Kr3TDQxVIo=";
};
vendorHash = "sha256-qETVUpxckZGa41Ll+SZTGcDlImsCvbvGQBcIwuIzSY8=";
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";
};
}