Merge pull request #179183 from Shawn8901/zreplVersion

zrepl: add version to ldflags and strip binary
This commit is contained in:
Mario Rodas 2022-06-26 10:14:59 -05:00 committed by GitHub
commit e45d9ac912
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,6 +24,8 @@ buildGoModule rec {
makeWrapper
];
ldflags = [ "-s" "-w" "-X github.com/zrepl/zrepl/version.zreplVersion=${version}" ];
postInstall = ''
mkdir -p $out/lib/systemd/system
substitute dist/systemd/zrepl.service $out/lib/systemd/system/zrepl.service \