mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
31 lines
720 B
Nix
31 lines
720 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, sqlite, gtest }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sqlitecpp";
|
|
version = "3.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SRombauts";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-uVvlW95UD1dhJfNuKgo7XvbdXrHl95OhaEpWfn0RH/E=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|