1 { lib, stdenv, fetchurl, fuse, zlib
6 version = "2018-01-07";
9 url = "https://www.sqlite.org/sqlar/tarball/4824e73896/sqlar-src-4824e73896.tar.gz";
10 sha256 = "09pikkbp93gqypn3da9zi0dzc47jyypkwc9vnmfzhmw7kpyv8nm9";
14 substituteInPlace Makefile \
15 --replace 'gcc' '${stdenv.cc.targetPrefix}cc'
18 buildInputs = [ zlib ]
19 ++ lib.optional withFuse fuse;
21 buildFlags = [ "CFLAGS=-Wno-error" "sqlar" ]
22 ++ lib.optional withFuse "sqlarfs";
25 install -D -t $out/bin sqlar
26 '' + lib.optionalString withFuse ''
27 install -D -t $out/bin sqlarfs
31 homepage = "https://sqlite.org/sqlar";
32 description = "SQLite Archive utilities";
33 license = licenses.bsd2;
34 platforms = platforms.all;
35 maintainers = with maintainers; [ dtzWill ];