diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-02-23 13:51:34 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-02-23 13:51:34 +0000 |
commit | 52c286ee5b3b8f5c521b17411782311a313f2e4c (patch) | |
tree | 948b519d8517d88cd81124703e5b4f35daf25019 /doc | |
parent | 390b789c3950307a9dc6bb57d2f5f0ae69cfc76b (diff) | |
parent | 129b6f78121802d18d215c9f9e04d7971c58ea0c (diff) | |
download | nixpkgs-52c286ee5b3b8f5c521b17411782311a313f2e4c.tar nixpkgs-52c286ee5b3b8f5c521b17411782311a313f2e4c.tar.gz nixpkgs-52c286ee5b3b8f5c521b17411782311a313f2e4c.tar.bz2 nixpkgs-52c286ee5b3b8f5c521b17411782311a313f2e4c.tar.lz nixpkgs-52c286ee5b3b8f5c521b17411782311a313f2e4c.tar.xz nixpkgs-52c286ee5b3b8f5c521b17411782311a313f2e4c.tar.zst nixpkgs-52c286ee5b3b8f5c521b17411782311a313f2e4c.zip |
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts: pkgs/development/libraries/pmdk/default.nix
Diffstat (limited to 'doc')
-rw-r--r-- | doc/languages-frameworks/emscripten.section.md | 2 | ||||
-rw-r--r-- | doc/stdenv/stdenv.chapter.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/languages-frameworks/emscripten.section.md b/doc/languages-frameworks/emscripten.section.md index ff622cfb0b5..67c8ed42bfd 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 diff --git a/doc/stdenv/stdenv.chapter.md b/doc/stdenv/stdenv.chapter.md index 1488a09982a..b3f9f681da4 100644 --- a/doc/stdenv/stdenv.chapter.md +++ b/doc/stdenv/stdenv.chapter.md @@ -1329,7 +1329,7 @@ bin/blib.a(bios_console.o): In function `bios_handle_cup': Adds the `-O2 -D_FORTIFY_SOURCE=2` compiler options. During code generation the compiler knows a great deal of information about buffer sizes (where possible), and attempts to replace insecure unlimited length buffer function calls with length-limited ones. This is especially useful for old, crufty code. Additionally, format strings in writable memory that contain `%n` are blocked. If an application depends on such a format string, it will need to be worked around. -Additionally, some warnings are enabled which might trigger build failures if compiler warnings are treated as errors in the package build. In this case, set `NIX_CFLAGS_COMPILE` to `-Wno-error=warning-type`. +Additionally, some warnings are enabled which might trigger build failures if compiler warnings are treated as errors in the package build. In this case, set `env.NIX_CFLAGS_COMPILE` to `-Wno-error=warning-type`. This needs to be turned off or fixed for errors similar to: |