From ccbac831d326836b33a9f79b9e545d7bb247eb86 Mon Sep 17 00:00:00 2001 From: edef Date: Fri, 24 Jan 2020 13:30:12 +0000 Subject: chore(buildGo): use lib.optionalString where applicable --- nix/buildGo/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nix/buildGo') diff --git a/nix/buildGo/default.nix b/nix/buildGo/default.nix index 140cbf2d9d..8d790cbea2 100644 --- a/nix/buildGo/default.nix +++ b/nix/buildGo/default.nix @@ -72,7 +72,7 @@ let # assembly if the analyser detected any *.s files. # # This is required for several popular packages (e.g. x/sys). - ifAsm = do: if sfiles == [] then "" else do; + ifAsm = do: lib.optionalString (sfiles != []) do; asmBuild = ifAsm '' ${go}/bin/go tool asm -trimpath $PWD -I $PWD -I ${go}/share/go/pkg/include -D GOOS_linux -D GOARCH_amd64 -gensymabis -o ./symabis ${spaceOut sfiles} ${go}/bin/go tool asm -trimpath $PWD -I $PWD -I ${go}/share/go/pkg/include -D GOOS_linux -D GOARCH_amd64 -o ./asm.o ${spaceOut sfiles} -- cgit 1.4.1