Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 63 lines 1.6 kB view raw
1{ 2 lib, 3 stdenv, 4 build2, 5 fetchurl, 6 libodb, 7 sqlite, 8 enableShared ? !stdenv.hostPlatform.isStatic, 9 enableStatic ? !enableShared, 10}: 11stdenv.mkDerivation rec { 12 pname = "libodb-sqlite"; 13 version = "2.5.0-b.27"; 14 15 outputs = [ 16 "out" 17 "dev" 18 "doc" 19 ]; 20 21 src = fetchurl { 22 url = "https://pkg.cppget.org/1/beta/odb/libodb-sqlite-${version}.tar.gz"; 23 hash = "sha256-jpxtY/VMkh88IzqGYgedu5TZGVIbPpy/FZNvUaOMf+w="; 24 }; 25 26 nativeBuildInputs = [ 27 build2 28 ]; 29 buildInputs = [ 30 libodb 31 ]; 32 propagatedBuildInputs = [ 33 sqlite 34 ]; 35 36 build2ConfigureFlags = [ 37 "config.bin.lib=${build2.configSharedStatic enableShared enableStatic}" 38 ]; 39 40 doCheck = true; 41 42 meta = with lib; { 43 description = "SQLite ODB runtime library"; 44 longDescription = '' 45 ODB is an object-relational mapping (ORM) system for C++. It provides 46 tools, APIs, and library support that allow you to persist C++ objects 47 to a relational database (RDBMS) without having to deal with tables, 48 columns, or SQL and without manually writing any of the mapping code. 49 For more information see: 50 51 http://www.codesynthesis.com/products/odb/ 52 53 This package contains the SQLite ODB runtime library. Every application 54 that includes code generated for the SQLite database will need to link 55 to this library. 56 ''; 57 homepage = "https://www.codesynthesis.com/products/odb/"; 58 changelog = "https://git.codesynthesis.com/cgit/odb/libodb-sqlite/tree/NEWS"; 59 license = licenses.gpl2Only; 60 maintainers = with maintainers; [ r-burns ]; 61 platforms = platforms.all; 62 }; 63}