diff --git a/src/nix/path-info.cc b/src/nix/path-info.cc
index 916ed360e62dc2f08f27163881828f7013fda683..fbe5f91698f1c31d9a90ab0380fe6f5a0e1b136a 100644
--- a/src/nix/path-info.cc
+++ b/src/nix/path-info.cc
@@ -70,9 +70,9 @@ struct CmdPathInfo : StorePathsCommand, MixJSON
             return;
         }
 
-        static constexpr std::array<char, 9> idents = {
+        static const std::array<char, 9> idents{{
             ' ', 'K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y'
-        };
+        }};
         size_t power = 0;
         double res = value;
         while (res > 1024 && power < idents.size()) {