3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/sqlitecpp/default.nix
2021-04-21 10:19:24 +10:00

32 lines
760 B
Nix

{ 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 ];
};
}