moar: add ldflags for proper version output

This commit is contained in:
Gabriel Arazas 2022-11-27 15:13:07 +08:00
parent 5417b35fdb
commit dbe94c3294

View file

@ -19,6 +19,11 @@ buildGoModule rec {
installManPage ./moar.1
'';
ldflags = [
"-s" "-w"
"-X" "main.versionString=v${version}"
];
meta = with lib; {
description = "Nice-to-use pager for humans";
homepage = "https://github.com/walles/moar";