Files
Ryan Burns 06746a162b build2 packages: 0.17 -> 0.18
These packages are all highly interdependent and have to be updated in
lockstep, so I'm just doing it all in one commit - there's no benefit to
having cherry-pickable commits as they wouldn't work individually.
2026-06-30 13:15:41 -07:00

64 lines
1.6 KiB
Nix

{
lib,
stdenv,
build2,
fetchurl,
libodb,
sqlite,
enableShared ? !stdenv.hostPlatform.isStatic,
enableStatic ? !enableShared,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libodb-sqlite";
version = "2.5.0";
outputs = [
"out"
"dev"
"doc"
];
src = fetchurl {
url = "https://pkg.cppget.org/1/stable/odb/libodb-sqlite-${finalAttrs.version}.tar.gz";
hash = "sha256-soq3OpAlVLum65um9MkJnR4Vgm3nofpPumRRpBCFb70=";
};
nativeBuildInputs = [
build2
];
buildInputs = [
libodb
];
propagatedBuildInputs = [
sqlite
];
build2ConfigureFlags = [
"config.bin.lib=${build2.configSharedStatic enableShared enableStatic}"
];
doCheck = true;
meta = {
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 = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ r-burns ];
platforms = lib.platforms.all;
};
})