nixpkgs/pkgs/development/libraries/cppdb/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
858 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, cmake, sqlite, libmysqlclient, postgresql, unixODBC }:
2016-08-24 08:47:56 +00:00
stdenv.mkDerivation rec {
pname = "cppdb";
2016-08-24 08:47:56 +00:00
version = "0.3.1";
src = fetchurl {
url = "mirror://sourceforge/cppcms/${pname}-${version}.tar.bz2";
2016-08-24 08:47:56 +00:00
sha256 = "0blr1casmxickic84dxzfmn3lm7wrsl4aa2abvpq93rdfddfy3nn";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ sqlite libmysqlclient postgresql unixODBC ];
2016-08-24 08:47:56 +00:00
cmakeFlags = [ "--no-warn-unused-cli" ];
env.NIX_CFLAGS_COMPILE = "-I${libmysqlclient}/include/mysql -L${libmysqlclient}/lib/mysql";
2016-08-24 08:47:56 +00:00
meta = with lib; {
homepage = "http://cppcms.com/sql/cppdb/";
2016-08-24 08:47:56 +00:00
description = "C++ Connectivity library that supports MySQL, PostgreSQL, Sqlite3 databases and generic ODBC drivers";
platforms = platforms.linux ;
license = licenses.boost;
maintainers = [ maintainers.juliendehos ];
};
}