zrepl: set release version on build

This commit is contained in:
Shawn8901 2022-06-26 13:37:16 +02:00
parent 1e4f051d78
commit 6c5f014da7

View File

@ -24,6 +24,8 @@ buildGoModule rec {
makeWrapper
];
ldflags = [ "-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 \