mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 15:43:00 +00:00
Merge pull request #324509 from camcalaquian/pkg/oathkeeper
Added ory oathkeeper
This commit is contained in:
commit
f80a9be95f
@ -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
pkgs/by-name/oa/oathkeeper/package.nix
Normal file
46
pkgs/by-name/oa/oathkeeper/package.nix
Normal file
@ -0,0 +1,46 @@
|
||||
{
|
||||
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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user