add pkgs: sqlite-amalgamation

This commit is contained in:
lassulus 2015-06-12 01:28:41 +02:00 committed by Rok Garbas
parent deadb4e0aa
commit 03f0f41db5
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{ lib, stdenv, fetchurl, unzip }:
stdenv.mkDerivation {
name = "sqlite-amalgamation-201505302257";
src = fetchurl {
url = "https://www.sqlite.org/snapshot/sqlite-amalgamation-201505302257.zip";
sha256 = "0488wjrpnxd61g7pcka6fckx0q8yl1k26i6q5hrmkm92qcpml76h";
};
phases = [ "unpackPhase" "buildPhase" ];
buildInputs = [ unzip ];
unpackPhase = ''
unzip $src
'';
buildPhase = ''
mkdir -p $out
cp sqlite3.c $out/
cp sqlite3.h $out/
cp sqlite3ext.h $out/
cp shell.c $out/
'';
meta = {
homepage = http://www.sqlite.org/;
description = "A single C code file, named sqlite3.c, that contains all C code for the core SQLite library and the FTS3 and RTREE extensions";
platforms = stdenv.lib.platforms.unix;
maintainers = [ lib.maintainers.lassulus ];
};
}

View file

@ -8009,6 +8009,8 @@ let
sqlite3_analyzer = lowPrio (callPackage ../development/libraries/sqlite/sqlite3_analyzer.nix { });
sqlite-amalgamation = callPackage ../development/libraries/sqlite-amalgamation { };
sqlite-interactive = appendToName "interactive" (sqlite.override { interactive = true; });
sqlcipher = lowPrio (callPackage ../development/libraries/sqlcipher {