2020-11-13 19:51:06 +01:00
|
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-11-08 13:47:13 +01:00
|
|
|
|
|
2020-11-13 19:51:06 +01:00
|
|
|
|
buildGoModule rec {
|
2019-11-08 13:47:13 +01:00
|
|
|
|
pname = "open-policy-agent";
|
2021-01-21 12:06:56 +01:00
|
|
|
|
version = "0.26.0";
|
2019-11-08 13:47:13 +01:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "open-policy-agent";
|
|
|
|
|
repo = "opa";
|
|
|
|
|
rev = "v${version}";
|
2021-01-21 12:06:56 +01:00
|
|
|
|
sha256 = "sha256-bkWfRmcUPNYeUucrbh9xAqmLg7RxEEQGa2DQdN2S6Po=";
|
2019-11-08 13:47:13 +01:00
|
|
|
|
};
|
|
|
|
|
|
2020-11-13 19:51:06 +01:00
|
|
|
|
vendorSha256 = null;
|
|
|
|
|
|
2020-10-14 00:00:46 +02:00
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
2020-11-13 19:51:06 +01:00
|
|
|
|
buildFlagsArray = [
|
|
|
|
|
"-ldflags="
|
|
|
|
|
"-X github.com/open-policy-agent/opa/version.Version=${version}"
|
|
|
|
|
];
|
2020-07-25 21:30:12 +02:00
|
|
|
|
|
2019-11-08 13:47:13 +01:00
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "General-purpose policy engine";
|
2020-11-13 19:56:15 +01:00
|
|
|
|
longDescription = ''
|
|
|
|
|
The Open Policy Agent (OPA, pronounced "oh-pa") is an open source, general-purpose policy engine that unifies
|
|
|
|
|
policy enforcement across the stack. OPA provides a high-level declarative language that let’s you specify policy
|
|
|
|
|
as code and simple APIs to offload policy decision-making from your software. You can use OPA to enforce policies
|
|
|
|
|
in microservices, Kubernetes, CI/CD pipelines, API gateways, and more.
|
|
|
|
|
'';
|
2019-11-08 13:47:13 +01:00
|
|
|
|
homepage = "https://www.openpolicyagent.org";
|
|
|
|
|
license = licenses.asl20;
|
|
|
|
|
maintainers = with maintainers; [ lewo ];
|
|
|
|
|
};
|
|
|
|
|
}
|