python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libodb-sqlite / default.nix
blob24cb8350f2bf350fdbc41f87a6ccea7c4fea6496
1 { lib, stdenv
2 , build2
3 , fetchurl
4 , libodb
5 , sqlite
6 , enableShared ? !stdenv.hostPlatform.isStatic
7 , enableStatic ? !enableShared
8 }:
9 stdenv.mkDerivation rec {
10   pname = "libodb-sqlite";
11   version = "2.5.0-b.23";
13   outputs = [ "out" "dev" "doc" ];
15   src = fetchurl {
16     url = "https://pkg.cppget.org/1/beta/odb/libodb-sqlite-${version}.tar.gz";
17     sha256 = "sha256-HjEFfNDXduHOexNm82S+vqKRQM3SwgEYiDBZcPXsr/w=";
18   };
20   nativeBuildInputs = [
21     build2
22   ];
23   buildInputs = [
24     libodb
25   ];
26   propagatedBuildInputs = [
27     sqlite
28   ];
30   build2ConfigureFlags = [
31     "config.bin.lib=${build2.configSharedStatic enableShared enableStatic}"
32   ];
34   doCheck = true;
36   meta = with lib; {
37     description = "SQLite ODB runtime library";
38     longDescription = ''
39       ODB is an object-relational mapping (ORM) system for C++. It provides
40       tools, APIs, and library support that allow you to persist C++ objects
41       to a relational database (RDBMS) without having to deal with tables,
42       columns, or SQL and without manually writing any of the mapping code.
43       For more information see:
45       http://www.codesynthesis.com/products/odb/
47       This package contains the SQLite ODB runtime library. Every application
48       that includes code generated for the SQLite database will need to link
49       to this library.
50     '';
51     homepage = "https://www.codesynthesis.com/products/odb/";
52     changelog = "https://git.codesynthesis.com/cgit/odb/libodb-sqlite/tree/NEWS";
53     license = licenses.gpl2Only;
54     maintainers = with maintainers; [ r-burns ];
55     platforms = platforms.all;
56   };