linuxkit: use buildFlagsArray
This commit is contained in:
parent
405d540652
commit
67de12f991
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user