1{ stdenv, fetchurl, fuse, zlib }:
2
3stdenv.mkDerivation rec {
4 name = "sqlar-${version}";
5 version = "2018-01-07";
6
7 src = fetchurl {
8 url = "https://www.sqlite.org/sqlar/tarball/4824e73896/sqlar-src-4824e73896.tar.gz";
9 sha256 = "09pikkbp93gqypn3da9zi0dzc47jyypkwc9vnmfzhmw7kpyv8nm9";
10 };
11
12 buildInputs = [ fuse zlib ];
13
14 buildFlags = [ "sqlar" "sqlarfs" ];
15
16 installPhase = ''
17 install -D -t $out/bin sqlar sqlarfs
18 '';
19
20 meta = with stdenv.lib; {
21 homepage = https://sqlite.org/sqlar;
22 description = "SQLite Archive utilities";
23 license = licenses.bsd2;
24 platforms = platforms.all;
25 maintainers = with maintainers; [ dtzWill ];
26 };
27}