2024-05-15 15:35:15 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
name = "regal";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.22.0";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "StyraInc";
|
|
|
|
repo = "regal";
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-3Q37ukeqf3n8UhriQNCWyRCgWOcxwO4TsNcsEnJn5eg=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
vendorHash = "sha256-ejTBfoDYMt5Jpuq+uNgpdHCafR7IUVr8OFB84+m/ZFg=";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "a linter and language server for Rego";
|
|
|
|
mainProgram = "regal";
|
|
|
|
homepage = "https://github.com/StyraInc/regal";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rinx ];
|
|
|
|
};
|
|
|
|
}
|