Unverified Commit af1dd138 authored by Patrizio Bekerle's avatar Patrizio Bekerle Committed by GitHub
Browse files

pet: add ldflags to set version of application

parent 0135b7a5
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -13,6 +13,10 @@ buildGoModule rec {

  vendorSha256 = "sha256-dUvp7FEW09V0xMuhewPGw3TuAic/sD7xyXEYviZ2Ivs=";

  ldflags = [
    "-s -w -X github.com/knqyf263/pet/cmd.version=${version}"
  ];

  doCheck = false;

  subPackages = [ "." ];