From 9971d875a462bc393724220f468825eca9e5c38a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 25 Oct 2017 17:20:47 +0200 Subject: [PATCH] Fix building on clang https://hydra.nixos.org/build/62945761 --- src/libstore/build.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 51afbac7f..9f8edc826 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -2400,10 +2400,10 @@ void DerivationGoal::writeStructuredAttrs() } if (value.is_null()) - return "''"; + return std::string("''"); if (value.is_boolean()) - return value.get() ? "1" : ""; + return value.get() ? std::string("1") : std::string(""); return {}; };