531e121e5b
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; ```
28 lines
678 B
Nix
28 lines
678 B
Nix
{ stdenv, fetchurl, fuse, zlib }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "sqlar";
|
|
version = "2018-01-07";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.sqlite.org/sqlar/tarball/4824e73896/sqlar-src-4824e73896.tar.gz";
|
|
sha256 = "09pikkbp93gqypn3da9zi0dzc47jyypkwc9vnmfzhmw7kpyv8nm9";
|
|
};
|
|
|
|
buildInputs = [ fuse zlib ];
|
|
|
|
buildFlags = [ "sqlar" "sqlarfs" "CFLAGS=-Wno-error" ];
|
|
|
|
installPhase = ''
|
|
install -D -t $out/bin sqlar sqlarfs
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://sqlite.org/sqlar";
|
|
description = "SQLite Archive utilities";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
};
|
|
}
|