2021-09-11 20:55:17 +01:00
|
|
|
{ lib, stdenv
|
|
|
|
, build2
|
|
|
|
, fetchurl
|
|
|
|
, libodb
|
|
|
|
, sqlite
|
|
|
|
, enableShared ? !stdenv.hostPlatform.isStatic
|
|
|
|
, enableStatic ? !enableShared
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libodb-sqlite";
|
2021-10-23 02:21:09 +01:00
|
|
|
version = "2.5.0-b.21";
|
2021-09-11 20:55:17 +01:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "doc" ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://pkg.cppget.org/1/beta/odb/libodb-sqlite-${version}.tar.gz";
|
2021-10-23 02:21:09 +01:00
|
|
|
sha256 = "sha256-dxU8HyzowFGNYCrZIKrZEZDGi9zo3G0x3/L7nfQKo0Y=";
|
2021-09-11 20:55:17 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
build2
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
libodb
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
sqlite
|
|
|
|
];
|
|
|
|
|
|
|
|
build2ConfigureFlags = [
|
|
|
|
"config.bin.lib=${build2.configSharedStatic enableShared enableStatic}"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "SQLite ODB runtime library";
|
|
|
|
longDescription = ''
|
|
|
|
ODB is an object-relational mapping (ORM) system for C++. It provides
|
|
|
|
tools, APIs, and library support that allow you to persist C++ objects
|
|
|
|
to a relational database (RDBMS) without having to deal with tables,
|
|
|
|
columns, or SQL and without manually writing any of the mapping code.
|
|
|
|
For more information see:
|
|
|
|
|
|
|
|
http://www.codesynthesis.com/products/odb/
|
|
|
|
|
|
|
|
This package contains the SQLite ODB runtime library. Every application
|
|
|
|
that includes code generated for the SQLite database will need to link
|
|
|
|
to this library.
|
|
|
|
'';
|
|
|
|
homepage = "https://www.codesynthesis.com/products/odb/";
|
|
|
|
changelog = "https://git.codesynthesis.com/cgit/odb/libodb-sqlite/tree/NEWS";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ r-burns ];
|
2021-10-23 23:08:45 +01:00
|
|
|
platforms = platforms.all;
|
2021-09-11 20:55:17 +01:00
|
|
|
};
|
|
|
|
}
|