Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchFromGitHub 4, cmake 5, sqlite 6, gtest 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "sqlitecpp"; 11 version = "3.3.1"; 12 13 src = fetchFromGitHub { 14 owner = "SRombauts"; 15 repo = "sqlitecpp"; 16 rev = finalAttrs.version; 17 sha256 = "sha256-8l1JRaE7w9vJ4bCSLGAk9zwYHDFeKkBi9pE5fUJfLRc="; 18 }; 19 20 nativeBuildInputs = [ 21 cmake 22 ]; 23 buildInputs = [ 24 sqlite 25 gtest 26 ]; 27 doCheck = true; 28 29 cmakeFlags = [ 30 "-DSQLITECPP_INTERNAL_SQLITE=OFF" 31 "-DSQLITECPP_BUILD_TESTS=ON" 32 ]; 33 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 }; 41})