3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/open-policy-agent/default.nix

36 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2019-11-08 12:47:13 +00:00
buildGoModule rec {
2019-11-08 12:47:13 +00:00
pname = "open-policy-agent";
2020-12-09 12:14:35 +00:00
version = "0.25.2";
2019-11-08 12:47:13 +00:00
src = fetchFromGitHub {
owner = "open-policy-agent";
repo = "opa";
rev = "v${version}";
2020-12-09 12:14:35 +00:00
sha256 = "0y4jd1dpq7cy9nfacpf5jbh705gmky44j78q32kq5v566lzrsvvp";
2019-11-08 12:47:13 +00:00
};
vendorSha256 = null;
subPackages = [ "." ];
buildFlagsArray = [
"-ldflags="
"-X github.com/open-policy-agent/opa/version.Version=${version}"
];
2019-11-08 12:47:13 +00:00
meta = with lib; {
description = "General-purpose policy engine";
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 lets 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 12:47:13 +00:00
homepage = "https://www.openpolicyagent.org";
license = licenses.asl20;
maintainers = with maintainers; [ lewo ];
};
}