sqlitecpp: init 3.1.1

This commit is contained in:
Justin Bedo 2020-09-29 14:42:16 +10:00
parent 299d054a7f
commit c1290daeaa
No known key found for this signature in database
GPG key ID: 2C18202C56C182BD
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{ lib, stdenv, fetchFromGitHub, cmake, sqlite, cppcheck, gtest }:
stdenv.mkDerivation rec {
pname = "SQLiteCpp";
version = "3.1.1";
src = fetchFromGitHub {
owner = "SRombauts";
repo = pname;
rev = version;
sha256 = "1c2yyipiqswi5sf9xmpsgw6l1illzmcpkjm56agk6kl2hay23lgr";
};
nativeBuildInputs = [ cmake ];
checkInputs = [ cppcheck gtest ];
buildInputs = [ sqlite ];
doCheck = true;
cmakeFlags = [
"-DSQLITECPP_INTERNAL_SQLITE=OFF"
"-DSQLITECPP_BUILD_TESTS=ON"
];
meta = with lib; {
homepage = "http://srombauts.github.com/SQLiteCpp";
description = "C++ SQLite3 wrapper";
license = licenses.mit;
platforms = platforms.unix;
maintainers = [ maintainers.jbedo maintainers.doronbehar ];
};
}

View file

@ -17249,6 +17249,8 @@ in
sqlar = callPackage ../development/libraries/sqlite/sqlar.nix { };
sqlitecpp = callPackage ../development/libraries/sqlitecpp { };
sqlite-interactive = appendToName "interactive" (sqlite.override { interactive = true; }).bin;
sqlite-jdbc = callPackage ../servers/sql/sqlite/jdbc { };