depot/third_party/nixpkgs/pkgs/development/libraries/sqlitecpp/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

30 lines
720 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, sqlite, gtest }:
stdenv.mkDerivation rec {
pname = "sqlitecpp";
version = "3.3.0";
src = fetchFromGitHub {
owner = "SRombauts";
repo = pname;
rev = version;
sha256 = "sha256-3Xo/FgifbrSn0AvinriJZerUM2kbcMaoyF5ST8+1Qqw=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ sqlite gtest ];
doCheck = true;
cmakeFlags = [
"-DSQLITECPP_INTERNAL_SQLITE=OFF"
"-DSQLITECPP_BUILD_TESTS=ON"
];
meta = with lib; {
homepage = "https://srombauts.github.io/SQLiteCpp/";
description = "C++ SQLite3 wrapper";
license = licenses.mit;
platforms = platforms.unix;
maintainers = [ maintainers.jbedo maintainers.doronbehar ];
};
}