2020-09-29 04:42:16 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, sqlite, cppcheck, gtest }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-04-27 05:42:39 +00:00
|
|
|
pname = "sqlitecpp";
|
2022-09-19 08:24:14 +00:00
|
|
|
version = "3.2.0";
|
2020-09-29 04:42:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SRombauts";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-09-19 08:24:14 +00:00
|
|
|
sha256 = "sha256-Z1c2lQZ0UltcIf9dTnumZPhke4uEmsjg/Ygppvx3kxY=";
|
2020-09-29 04:42:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2022-08-13 12:35:30 +00:00
|
|
|
checkInputs = [ cppcheck ];
|
|
|
|
buildInputs = [ sqlite gtest ];
|
2020-09-29 04:42:16 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DSQLITECPP_INTERNAL_SQLITE=OFF"
|
|
|
|
"-DSQLITECPP_BUILD_TESTS=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-04-27 05:42:39 +00:00
|
|
|
homepage = "https://srombauts.github.io/SQLiteCpp/";
|
2020-09-29 04:42:16 +00:00
|
|
|
description = "C++ SQLite3 wrapper";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.jbedo maintainers.doronbehar ];
|
|
|
|
};
|
|
|
|
}
|