2024-05-15 15:35:15 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
name = "regal";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.26.2";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "StyraInc";
|
|
|
|
repo = "regal";
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-QfxgfwBGAib+mqT2v/8/rhl5Ufjwjf9BouCTYqs6wlw=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
vendorHash = "sha256-5ImRjMPl+qc2iQEXg9OzKphPpRXhjYvu+1q1ol3M8Yg=";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Linter and language server for Rego";
|
2024-05-15 15:35:15 +00:00
|
|
|
mainProgram = "regal";
|
|
|
|
homepage = "https://github.com/StyraInc/regal";
|
2024-07-27 06:49:29 +00:00
|
|
|
changelog = "https://github.com/StyraInc/regal/releases/tag/${src.rev}";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rinx ];
|
|
|
|
};
|
|
|
|
}
|