forked from mirrors/nixpkgs
Merge pull request #179183 from Shawn8901/zreplVersion
zrepl: add version to ldflags and strip binary
This commit is contained in:
commit
e45d9ac912
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue