Merge pull request #194445 from naphta/master
opcr-policy: init at 0.1.42
This commit is contained in:
commit
be36cb1636
3 changed files with 52 additions and 0 deletions
|
@ -9390,6 +9390,12 @@
|
|||
githubId = 1222539;
|
||||
name = "Roman Naumann";
|
||||
};
|
||||
naphta = {
|
||||
email = "naphta@noreply.github.com";
|
||||
github = "naphta";
|
||||
githubId = 6709831;
|
||||
name = "Jake Hill";
|
||||
};
|
||||
nasirhm = {
|
||||
email = "nasirhussainm14@gmail.com";
|
||||
github = "nasirhm";
|
||||
|
|
44
pkgs/development/tools/opcr-policy/default.nix
Normal file
44
pkgs/development/tools/opcr-policy/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "opcr-policy";
|
||||
version = "0.1.42";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "opcr-io";
|
||||
repo = "policy";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-taC/VZBalJMFi8kVw7R03ibmHTwbKTxj3mcYbXms26M=";
|
||||
};
|
||||
vendorSha256 = "sha256-r2eKRJC8/fDY38u924ViLCf7kT54Tc+zIBD2YV9Qn6c=";
|
||||
|
||||
ldflags = [ "-s" "-w" "-X github.com/opcr-io/policy/pkg/version.ver=${version}" ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
runHook preInstallCheck
|
||||
|
||||
$out/bin/policy --help
|
||||
$out/bin/policy version | grep "version: ${version}"
|
||||
|
||||
runHook postInstallCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
mainProgram = "policy";
|
||||
homepage = "https://www.openpolicyregistry.io/";
|
||||
changelog = "https://github.com/opcr-io/policy/releases/tag/v${version}";
|
||||
description = "CLI for managing authorization policies";
|
||||
longDescription = ''
|
||||
The policy CLI is a tool for building, versioning and publishing your authorization policies.
|
||||
It uses OCI standards to manage artifacts, and the Open Policy Agent (OPA) to compile and run.
|
||||
'';
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ naphta jk ];
|
||||
};
|
||||
}
|
|
@ -30149,6 +30149,8 @@ with pkgs;
|
|||
|
||||
onlyoffice-bin = callPackage ../applications/office/onlyoffice-bin { };
|
||||
|
||||
opcr-policy = callPackage ../development/tools/opcr-policy { };
|
||||
|
||||
open-policy-agent = callPackage ../development/tools/open-policy-agent { };
|
||||
|
||||
openshift = callPackage ../applications/networking/cluster/openshift { };
|
||||
|
|
Loading…
Reference in a new issue