mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00
regal: add ldflags to show version (#345059)
This commit is contained in:
commit
06311057ca
@ -13,6 +13,12 @@ buildGoModule rec {
|
||||
|
||||
vendorHash = "sha256-Yl8ZFEiAJRAetc3e2ZdrbTdYhx/Ek9nr3mMQ0H7+aGM=";
|
||||
|
||||
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";
|
||||
|
Loading…
Reference in New Issue
Block a user