From 531e121e5bb8f4ec0cf03ff43242843e10551d7a Mon Sep 17 00:00:00 2001 From: Daniel Nagy Date: Sat, 16 Jan 2021 23:37:39 +0100 Subject: 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; ``` --- pkgs/development/libraries/sqlite/sqlar.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/development/libraries') 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 -- cgit 1.4.1