Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / sqlitecpp / default.nix
blobe2c0b4ec35b97612cac154af861646e444df0130
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , cmake
5 , sqlite
6 , gtest
7 }:
9 stdenv.mkDerivation (finalAttrs: {
10   pname = "sqlitecpp";
11   version = "3.3.1";
13   src = fetchFromGitHub {
14     owner = "SRombauts";
15     repo = "sqlitecpp";
16     rev = finalAttrs.version;
17     sha256 = "sha256-8l1JRaE7w9vJ4bCSLGAk9zwYHDFeKkBi9pE5fUJfLRc=";
18   };
20   nativeBuildInputs = [
21     cmake
22   ];
23   buildInputs = [
24     sqlite
25     gtest
26   ];
27   doCheck = true;
29   cmakeFlags = [
30     "-DSQLITECPP_INTERNAL_SQLITE=OFF"
31     "-DSQLITECPP_BUILD_TESTS=ON"
32   ];
34   meta = with lib; {
35     homepage = "https://srombauts.github.io/SQLiteCpp/";
36     description = "C++ SQLite3 wrapper";
37     license = licenses.mit;
38     platforms = platforms.unix;
39     maintainers = [ maintainers.jbedo maintainers.doronbehar ];
40   };