Merge pull request #105851 from avdv/dasel-with-version

dasel: Set version in ldflags
This commit is contained in:
Sandro 2020-12-04 17:04:52 +01:00 committed by GitHub
commit 82845ff895
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,10 @@ buildGoModule rec {
vendorSha256 = "1552k85z4s6gv7sss7dccv3h8x22j2sr12icp6s7s0a3i4iwyksw";
buildFlagsArray = ''
-ldflags=-s -w -X github.com/tomwright/dasel/internal.Version=${version}
'';
meta = with stdenv.lib; {
description = "Query and update data structures from the command line";
longDescription = ''