2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, sqlite
|
|
|
|
, gtest
|
|
|
|
}:
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-05-03 20:48:10 +00:00
|
|
|
pname = "sqlitecpp";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "3.3.1";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SRombauts";
|
2023-10-09 19:29:22 +00:00
|
|
|
repo = "sqlitecpp";
|
|
|
|
rev = finalAttrs.version;
|
|
|
|
sha256 = "sha256-8l1JRaE7w9vJ4bCSLGAk9zwYHDFeKkBi9pE5fUJfLRc=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
sqlite
|
|
|
|
gtest
|
|
|
|
];
|
2021-04-25 03:57:28 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DSQLITECPP_INTERNAL_SQLITE=OFF"
|
|
|
|
"-DSQLITECPP_BUILD_TESTS=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-05-03 20:48:10 +00:00
|
|
|
homepage = "https://srombauts.github.io/SQLiteCpp/";
|
2021-04-25 03:57:28 +00:00
|
|
|
description = "C++ SQLite3 wrapper";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.jbedo maintainers.doronbehar ];
|
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|