feed2imap-go: Set correct LDFLAGS
As is common in Go, version information in the binary is set at compile time via LDFLAGS.
This commit is contained in:
parent
27343d6e6b
commit
79be1d906e
1 changed files with 6 additions and 0 deletions
|
@ -11,6 +11,12 @@ buildGoModule rec {
|
|||
sha256 = "sha256-Qtpg8DvIFkba+Do8IwemBF0rt85wS4Tq7yOLsdpQFCs=";
|
||||
};
|
||||
|
||||
ldflags = [
|
||||
"-s" "-w"
|
||||
"-X github.com/Necoro/feed2imap-go/pkg/version.version=${version}"
|
||||
"-X github.com/Necoro/feed2imap-go/pkg/version.commit=nixpkgs"
|
||||
];
|
||||
|
||||
vendorHash = "sha256-WFbfSzU1N2RAOMfCM7wqiAQ6R1HRaT0EfX4KYhstHJU=";
|
||||
|
||||
# The print-cache tool is not an end-user tool (https://github.com/Necoro/feed2imap-go/issues/94)
|
||||
|
|
Loading…
Reference in a new issue