depot/third_party/nixpkgs/pkgs/development/libraries/sqlitecpp/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

41 lines
768 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, sqlite
, gtest
}:
stdenv.mkDerivation (finalAttrs: {
pname = "sqlitecpp";
version = "3.3.1";
src = fetchFromGitHub {
owner = "SRombauts";
repo = "sqlitecpp";
rev = finalAttrs.version;
sha256 = "sha256-8l1JRaE7w9vJ4bCSLGAk9zwYHDFeKkBi9pE5fUJfLRc=";
};
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 ];
};
})