about summary refs log tree commit diff
path: root/doc/languages-frameworks/emscripten.section.md
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2023-02-20 17:17:34 +0200
committerArtturin <Artturin@artturin.com>2023-02-22 21:23:04 +0200
commit6b2a05e19089c2b16c6ed52e7e495f8a9f903c60 (patch)
tree30990df54ee4a654a86772f909c5d2c318356419 /doc/languages-frameworks/emscripten.section.md
parentf9fdf2d4028eac28a074c9ad75d309b3dcbf8e7a (diff)
treewide: manual fixups for
treewide: use toString on list NIX_CFLAGS_COMPILE
treewide: move NIX_CFLAGS_COMPILE to the env attrset
Diffstat (limited to 'doc/languages-frameworks/emscripten.section.md')
-rw-r--r--doc/languages-frameworks/emscripten.section.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/languages-frameworks/emscripten.section.md b/doc/languages-frameworks/emscripten.section.md
index ff622cfb0b501..67c8ed42bfda1 100644
--- a/doc/languages-frameworks/emscripten.section.md
+++ b/doc/languages-frameworks/emscripten.section.md
@@ -60,7 +60,7 @@ See the `zlib` example:
     (old: rec {
       buildInputs = old.buildInputs ++ [ pkg-config ];
       # we need to reset this setting!
-      NIX_CFLAGS_COMPILE="";
+      env = (old.env or { }) // { NIX_CFLAGS_COMPILE = ""; };
       configurePhase = ''
         # FIXME: Some tests require writing at $HOME
         HOME=$TMPDIR