mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
f9fdf2d402
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
26 lines
858 B
Nix
26 lines
858 B
Nix
{ lib, stdenv, fetchurl, cmake, sqlite, libmysqlclient, postgresql, unixODBC }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cppdb";
|
|
version = "0.3.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/cppcms/${pname}-${version}.tar.bz2";
|
|
sha256 = "0blr1casmxickic84dxzfmn3lm7wrsl4aa2abvpq93rdfddfy3nn";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ sqlite libmysqlclient postgresql unixODBC ];
|
|
|
|
cmakeFlags = [ "--no-warn-unused-cli" ];
|
|
env.NIX_CFLAGS_COMPILE = "-I${libmysqlclient}/include/mysql -L${libmysqlclient}/lib/mysql";
|
|
|
|
meta = with lib; {
|
|
homepage = "http://cppcms.com/sql/cppdb/";
|
|
description = "C++ Connectivity library that supports MySQL, PostgreSQL, Sqlite3 databases and generic ODBC drivers";
|
|
platforms = platforms.linux ;
|
|
license = licenses.boost;
|
|
maintainers = [ maintainers.juliendehos ];
|
|
};
|
|
}
|