555cd8a8f9
GitOrigin-RevId: 5633bcff0c6162b9e4b5f1264264611e950c8ec7
30 lines
823 B
Nix
30 lines
823 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
name = "regal";
|
|
version = "0.28.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "StyraInc";
|
|
repo = "regal";
|
|
rev = "v${version}";
|
|
hash = "sha256-bQKVebpDqmwTAbocL10WrvA4HeVjDaGcbX090cX7HPw=";
|
|
};
|
|
|
|
vendorHash = "sha256-EaOMIfkaYPXmsqw/Oi3caKjarR5ijwcoK+EXwGfSUqE=";
|
|
|
|
ldflags = [
|
|
"-s" "-w"
|
|
"-X github.com/styrainc/regal/pkg/version.Version=${version}"
|
|
"-X github.com/styrainc/regal/pkg/version.Commit=${version}"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|