nixpkgs/pkgs/development/libraries/sqlitecpp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
720 B
Nix
Raw Normal View History

2023-02-15 21:02:37 +00:00
{ lib, stdenv, fetchFromGitHub, cmake, sqlite, gtest }:
2020-09-29 04:42:16 +00:00
stdenv.mkDerivation rec {
2021-04-27 05:42:39 +00:00
pname = "sqlitecpp";
2023-05-28 07:10:44 +00:00
version = "3.3.0";
2020-09-29 04:42:16 +00:00
src = fetchFromGitHub {
owner = "SRombauts";
repo = pname;
rev = version;
2023-05-28 07:10:44 +00:00
sha256 = "sha256-3Xo/FgifbrSn0AvinriJZerUM2kbcMaoyF5ST8+1Qqw=";
2020-09-29 04:42:16 +00:00
};
nativeBuildInputs = [ cmake ];
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 ];
};
}