summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Nagy <danielnagy@posteo.de>2021-01-16 23:37:39 +0100
committerDaniel Nagy <danielnagy@posteo.de>2021-01-16 23:41:00 +0100
commit531e121e5bb8f4ec0cf03ff43242843e10551d7a (patch)
tree909dfbbb204ab91214fac019eda24cbe9d786a7c
parente1545d42aac07d97618c46fa46b070b244d2a85f (diff)
downloadnixpkgs-531e121e5bb8f4ec0cf03ff43242843e10551d7a.tar
nixpkgs-531e121e5bb8f4ec0cf03ff43242843e10551d7a.tar.gz
nixpkgs-531e121e5bb8f4ec0cf03ff43242843e10551d7a.tar.bz2
nixpkgs-531e121e5bb8f4ec0cf03ff43242843e10551d7a.tar.lz
nixpkgs-531e121e5bb8f4ec0cf03ff43242843e10551d7a.tar.xz
nixpkgs-531e121e5bb8f4ec0cf03ff43242843e10551d7a.tar.zst
nixpkgs-531e121e5bb8f4ec0cf03ff43242843e10551d7a.zip
sqlar: fix build error
Disable warnings to be treated as errors, since otherwise the build
would fail with this message:

```
sqlite3.c: In function 'sqlite3SelectNew':
sqlite3.c:116663:10: error: function may return address of local variable [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wreturn-local-addr-Werror=return-local-addr8;;]
116663 |   return pNew;
```
-rw-r--r--pkgs/development/libraries/sqlite/sqlar.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/sqlite/sqlar.nix b/pkgs/development/libraries/sqlite/sqlar.nix
index 78ac8ba6448..abfb688e461 100644
--- a/pkgs/development/libraries/sqlite/sqlar.nix
+++ b/pkgs/development/libraries/sqlite/sqlar.nix
@@ -11,7 +11,7 @@ stdenv.mkDerivation {
 
   buildInputs = [ fuse zlib ];
 
-  buildFlags = [ "sqlar" "sqlarfs" ];
+  buildFlags = [ "sqlar" "sqlarfs" "CFLAGS=-Wno-error" ];
 
   installPhase = ''
     install -D -t $out/bin sqlar sqlarfs