shiori: embed version in executable (#359146)
This commit is contained in:
commit
d47f8a2b54
@ -15,6 +15,11 @@ buildGoModule rec {
|
|||||||
sha256 = "sha256-gMIpDiA5ncZ50WZ2Y57mScTEXzeObgZxP+nkWe+a8Eo=";
|
sha256 = "sha256-gMIpDiA5ncZ50WZ2Y57mScTEXzeObgZxP+nkWe+a8Eo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-X main.version=${version}"
|
||||||
|
"-X main.commit=nixpkgs-${src.rev}"
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
postInstall = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
|
postInstall = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
|
||||||
installShellCompletion --cmd shiori \
|
installShellCompletion --cmd shiori \
|
||||||
|
Loading…
Reference in New Issue
Block a user