1{ lib, stdenv, fetchurl, unzip }:
2
3stdenv.mkDerivation {
4 name = "sqlite-amalgamation-201505302257";
5
6 src = fetchurl {
7 url = "https://www.sqlite.org/snapshot/sqlite-amalgamation-201505302257.zip";
8 sha256 = "0488wjrpnxd61g7pcka6fckx0q8yl1k26i6q5hrmkm92qcpml76h";
9 };
10
11 phases = [ "unpackPhase" "buildPhase" ];
12
13 buildInputs = [ unzip ];
14
15 unpackPhase = ''
16 unzip $src
17 '';
18
19 buildPhase = ''
20 mkdir -p $out
21 cp sqlite3.c $out/
22 cp sqlite3.h $out/
23 cp sqlite3ext.h $out/
24 cp shell.c $out/
25 '';
26
27 meta = {
28 homepage = http://www.sqlite.org/;
29 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";
30 platforms = stdenv.lib.platforms.unix;
31 maintainers = [ lib.maintainers.lassulus ];
32 };
33}