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