regal: Update regal package source to OPA org (#477700)
This commit is contained in:
@@ -6,29 +6,32 @@
|
||||
|
||||
buildGoModule rec {
|
||||
name = "regal";
|
||||
version = "0.34.1";
|
||||
version = "0.37.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "StyraInc";
|
||||
owner = "open-policy-agent";
|
||||
repo = "regal";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-gdoQ+u9YbwTq28b3gYsNA0SxYFigeKK2JUd0paz8WYQ=";
|
||||
hash = "sha256-zAp4v1bKz+q+29jlhEccl7o9RWLA+Hn3Kp/UGBQlmA8=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-FycDMCfvpUkW7KcTLMUBOjbU4JnKCJrWQalNKSY1RkM=";
|
||||
vendorHash = "sha256-yvUvv8EL3WrsyBnzaGQK4DR+O5Ner9ehkZYCMnfRwRU=";
|
||||
|
||||
# Only build the main binary, exclude build/lsp/main.go
|
||||
subPackages = [ "." ];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/styrainc/regal/pkg/version.Version=${version}"
|
||||
"-X github.com/styrainc/regal/pkg/version.Commit=${version}"
|
||||
"-X github.com/open-policy-agent/regal/pkg/version.Version=${version}"
|
||||
"-X github.com/open-policy-agent/regal/pkg/version.Commit=${version}"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Linter and language server for Rego";
|
||||
mainProgram = "regal";
|
||||
homepage = "https://github.com/StyraInc/regal";
|
||||
changelog = "https://github.com/StyraInc/regal/releases/tag/${src.rev}";
|
||||
homepage = "https://github.com/open-policy-agent/regal";
|
||||
changelog = "https://github.com/open-policy-agent/regal/releases/tag/${src.rev}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ rinx ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user