nomad: buildFlagsArray -> tags

This commit is contained in:
zowoq 2021-08-06 10:58:02 +10:00
parent 09138462c8
commit ed9a086c0d

View file

@ -29,16 +29,7 @@ buildGoPackage rec {
# ui:
# Nomad release commits include the compiled version of the UI, but the file
# is only included if we build with the ui tag.
preBuild =
let
tags = [ "ui" ] ++ lib.optional (!nvidiaGpuSupport) "nonvidia";
tagsString = lib.concatStringsSep " " tags;
in
''
export buildFlagsArray=(
-tags="${tagsString}"
)
'';
tags = [ "ui" ] ++ lib.optional (!nvidiaGpuSupport) "nonvidia";
# The dependency on NVML isn't explicit. We have to make it so otherwise the
# binary will not know where to look for the relevant symbols.