mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
28 lines
674 B
Nix
28 lines
674 B
Nix
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "open-policy-agent";
|
|
version = "0.23.2";
|
|
|
|
goPackagePath = "github.com/open-policy-agent/opa";
|
|
src = fetchFromGitHub {
|
|
owner = "open-policy-agent";
|
|
repo = "opa";
|
|
rev = "v${version}";
|
|
sha256 = "18hpanfrzg6xnq1g0yws6g0lw4y191pnrqphccv13j6kqk3k10ps";
|
|
};
|
|
goDeps = ./deps.nix;
|
|
|
|
buildFlagsArray = ''
|
|
-ldflags=
|
|
-X ${goPackagePath}/version.Version=${version}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "General-purpose policy engine";
|
|
homepage = "https://www.openpolicyagent.org";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ lewo ];
|
|
};
|
|
}
|