diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-07-27 16:20:00 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2020-07-27 16:20:00 -0500 |
commit | 67de12f99115fafba5ee5e2c83eec82acfee2f57 (patch) | |
tree | 41cfcf7f3af3b5643ee77ff73183dad57014efe9 /pkgs/development/tools/misc/linuxkit | |
parent | 405d540652fc706eca3d3a0baf68f63e07bf0071 (diff) |
linuxkit: use buildFlagsArray
Diffstat (limited to 'pkgs/development/tools/misc/linuxkit')
-rw-r--r-- | pkgs/development/tools/misc/linuxkit/default.nix | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkgs/development/tools/misc/linuxkit/default.nix b/pkgs/development/tools/misc/linuxkit/default.nix index f9cecc6fc95ee..eeb2102bdf0ce 100644 --- a/pkgs/development/tools/misc/linuxkit/default.nix +++ b/pkgs/development/tools/misc/linuxkit/default.nix @@ -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"; |