diff options
author | Doron Behar <doron.behar@gmail.com> | 2021-04-22 05:45:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-22 05:45:15 +0000 |
commit | 5bad49242c0719d3568d2d530c5ac11e546e01dd (patch) | |
tree | 4c9cb8d39a7c6ad5fe1b2ccebc053557567a8b77 /pkgs/development/libraries | |
parent | fce51c84574b3a17f0cc53792189aeff4abc5663 (diff) | |
parent | c1290daeaa29770559839b9287a7a896c3db11d5 (diff) |
Merge pull request #99063 from jbedo/genomicsqlite
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/sqlitecpp/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/libraries/sqlitecpp/default.nix b/pkgs/development/libraries/sqlitecpp/default.nix new file mode 100644 index 0000000000000..ffe5e4bbb8381 --- /dev/null +++ b/pkgs/development/libraries/sqlitecpp/default.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, fetchFromGitHub, cmake, sqlite, cppcheck, gtest }: + +stdenv.mkDerivation rec { + pname = "SQLiteCpp"; + version = "3.1.1"; + + src = fetchFromGitHub { + owner = "SRombauts"; + repo = pname; + rev = version; + sha256 = "1c2yyipiqswi5sf9xmpsgw6l1illzmcpkjm56agk6kl2hay23lgr"; + }; + + nativeBuildInputs = [ cmake ]; + checkInputs = [ cppcheck gtest ]; + buildInputs = [ sqlite ]; + doCheck = true; + + cmakeFlags = [ + "-DSQLITECPP_INTERNAL_SQLITE=OFF" + "-DSQLITECPP_BUILD_TESTS=ON" + ]; + + meta = with lib; { + homepage = "http://srombauts.github.com/SQLiteCpp"; + description = "C++ SQLite3 wrapper"; + license = licenses.mit; + platforms = platforms.unix; + maintainers = [ maintainers.jbedo maintainers.doronbehar ]; + }; +} |