Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, cmake, sqlite, gtest }: 2 3stdenv.mkDerivation rec { 4 pname = "sqlitecpp"; 5 version = "3.3.0"; 6 7 src = fetchFromGitHub { 8 owner = "SRombauts"; 9 repo = pname; 10 rev = version; 11 sha256 = "sha256-3Xo/FgifbrSn0AvinriJZerUM2kbcMaoyF5ST8+1Qqw="; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 buildInputs = [ sqlite gtest ]; 16 doCheck = true; 17 18 cmakeFlags = [ 19 "-DSQLITECPP_INTERNAL_SQLITE=OFF" 20 "-DSQLITECPP_BUILD_TESTS=ON" 21 ]; 22 23 meta = with lib; { 24 homepage = "https://srombauts.github.io/SQLiteCpp/"; 25 description = "C++ SQLite3 wrapper"; 26 license = licenses.mit; 27 platforms = platforms.unix; 28 maintainers = [ maintainers.jbedo maintainers.doronbehar ]; 29 }; 30}