dockle: buildFlagsArray -> ldflags

This commit is contained in:
zowoq 2021-08-21 18:23:48 +10:00
parent 380ddb56e5
commit 69c7777320

View file

@ -16,9 +16,9 @@ buildGoModule rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ btrfs-progs lvm2 ];
preBuild = ''
buildFlagsArray+=("-ldflags" "-s -w -X main.version=${version}")
'';
ldflags = [
"-s" "-w" "-X main.version=${version}"
];
preCheck = ''
# Remove tests that use networking