Merge pull request #103741 from 06kellyjac/opa_cleanup
open-policy-agent: move to go modules
This commit is contained in:
commit
8fc335c0ff
@ -1,10 +1,9 @@
|
|||||||
{ lib, buildGoPackage, fetchFromGitHub }:
|
{ lib, buildGoModule, fetchFromGitHub }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoModule rec {
|
||||||
pname = "open-policy-agent";
|
pname = "open-policy-agent";
|
||||||
version = "0.24.0";
|
version = "0.24.0";
|
||||||
|
|
||||||
goPackagePath = "github.com/open-policy-agent/opa";
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "open-policy-agent";
|
owner = "open-policy-agent";
|
||||||
repo = "opa";
|
repo = "opa";
|
||||||
@ -12,15 +11,23 @@ buildGoPackage rec {
|
|||||||
sha256 = "0fv2rq8a01hapcpgfqp71v113iyyzs5w1sam14h9clyr1vqrbcf2";
|
sha256 = "0fv2rq8a01hapcpgfqp71v113iyyzs5w1sam14h9clyr1vqrbcf2";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
vendorSha256 = null;
|
||||||
|
|
||||||
subPackages = [ "." ];
|
subPackages = [ "." ];
|
||||||
|
|
||||||
buildFlagsArray = ''
|
buildFlagsArray = [
|
||||||
-ldflags=
|
"-ldflags="
|
||||||
-X ${goPackagePath}/version.Version=${version}
|
"-X github.com/open-policy-agent/opa/version.Version=${version}"
|
||||||
'';
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "General-purpose policy engine";
|
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 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.
|
||||||
|
'';
|
||||||
homepage = "https://www.openpolicyagent.org";
|
homepage = "https://www.openpolicyagent.org";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ lewo ];
|
maintainers = with maintainers; [ lewo ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user