linuxkit: use buildFlagsArray

This commit is contained in:
Mario Rodas 2020-07-27 16:20:00 -05:00
parent 405d540652
commit 67de12f991
No known key found for this signature in database
GPG Key ID: 325649BCA6D53027

View File

@ -15,9 +15,7 @@ buildGoPackage rec {
subPackages = [ "src/cmd/linuxkit" ];
preBuild = ''
buildFlagsArray+=("-ldflags" "-X github.com/linuxkit/linuxkit/src/cmd/linuxkit/version.Version=${src.rev}")
'';
buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/src/cmd/linuxkit/version.GitCommit=${src.rev} -X ${goPackagePath}/src/cmd/linuxkit/version.Version=${version}" ];
meta = with lib; {
description = "A toolkit for building secure, portable and lean operating systems for containers";