From 0f7eaddc5032b5b2276239dd1150f6a507626c98 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Wed, 16 May 2018 21:42:14 -0500 Subject: [PATCH] sqlar: init at 2018-01-07 --- pkgs/development/libraries/sqlite/sqlar.nix | 26 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/libraries/sqlite/sqlar.nix diff --git a/pkgs/development/libraries/sqlite/sqlar.nix b/pkgs/development/libraries/sqlite/sqlar.nix new file mode 100644 index 000000000000..734d68ca3d49 --- /dev/null +++ b/pkgs/development/libraries/sqlite/sqlar.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchurl, fuse, zlib }: + +stdenv.mkDerivation rec { + name = "sqlar-${version}"; + 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" ]; + + installPhase = '' + install -D -t $out/bin sqlar sqlarfs + ''; + + meta = with stdenv.lib; { + homepage = https://sqlite.org/sqlar; + description = "SQLite Archive utilities"; + platforms = platforms.all; + maintainers = with maintainers; [ dtzWill ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 47719d7ab567..88a9ad7e14d4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11650,6 +11650,8 @@ with pkgs; sqlite3_analyzer = lowPrio (callPackage ../development/libraries/sqlite/sqlite3_analyzer.nix { }); + sqlar = callPackage ../development/libraries/sqlite/sqlar.nix { }; + sqlite-interactive = appendToName "interactive" (sqlite.override { interactive = true; }).bin; sqlite-jdbc = callPackage ../servers/sql/sqlite/jdbc { };