toxic: 0.15.1 -> 0.16.0
[NixPkgs.git] / pkgs / by-name / oa / oathkeeper / package.nix
blob99641c35f004e08ac38372729c3422dc3344322e
2   fetchFromGitHub,
3   buildGoModule,
4   lib,
5 }:
6 let
7   pname = "oathkeeper";
8   version = "0.40.7";
9   commit = "c75695837f170334b526359f28967aa33d61bce6";
11 buildGoModule {
12   inherit pname version commit;
14   src = fetchFromGitHub {
15     owner = "ory";
16     repo = "oathkeeper";
17     rev = "v${version}";
18     hash = "sha256-Y5bowCFR9S70ko0vNCwZnhOIKKGdqgcDEBEtZisKEig=";
19   };
21   vendorHash = "sha256-+hh7MFYGPTaAlU/D0ROv5pw6YvzkAm6URuhP5jdgQtM=";
23   tags = [
24     "sqlite"
25     "json1"
26     "hsm"
27   ];
29   subPackages = [ "." ];
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   ];
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   };