nixpkgs/pkgs/by-name/re/regal/package.nix
2024-07-17 06:05:54 +00:00

25 lines
658 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
name = "regal";
version = "0.24.0";
src = fetchFromGitHub {
owner = "StyraInc";
repo = "regal";
rev = "v${version}";
hash = "sha256-bSu35IfQBoz2YKlEm8e02ahw9FxQfilR3b2WdjbAubs=";
};
vendorHash = "sha256-2NzBcOQ1TLUsh8wKiGlPogql+6qNou8//XpCiE7eV5I=";
meta = with lib; {
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}";
license = licenses.asl20;
maintainers = with maintainers; [ rinx ];
};
}