Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 sqlite, 7 gtest, 8}: 9 10stdenv.mkDerivation (finalAttrs: { 11 pname = "sqlitecpp"; 12 version = "3.3.3"; 13 14 src = fetchFromGitHub { 15 owner = "SRombauts"; 16 repo = "sqlitecpp"; 17 rev = finalAttrs.version; 18 hash = "sha256-RSNJGfvIvNfk+/Awzh06tDi/TA5Wc35X8ya0X5mP9IE="; 19 }; 20 21 nativeBuildInputs = [ 22 cmake 23 ]; 24 buildInputs = [ 25 sqlite 26 gtest 27 ]; 28 doCheck = true; 29 30 cmakeFlags = [ 31 "-DSQLITECPP_INTERNAL_SQLITE=OFF" 32 "-DSQLITECPP_BUILD_TESTS=ON" 33 ]; 34 35 meta = with lib; { 36 homepage = "https://srombauts.github.io/SQLiteCpp/"; 37 description = "C++ SQLite3 wrapper"; 38 license = licenses.mit; 39 platforms = platforms.unix; 40 maintainers = [ 41 maintainers.jbedo 42 maintainers.doronbehar 43 ]; 44 }; 45})