mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 21:13:40 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
47 lines
1.4 KiB
Nix
47 lines
1.4 KiB
Nix
{ lib, stdenv
|
|
, build2
|
|
, fetchurl
|
|
, enableShared ? !stdenv.hostPlatform.isStatic
|
|
, enableStatic ? !enableShared
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "libodb";
|
|
version = "2.5.0-b.27";
|
|
|
|
outputs = [ "out" "dev" "doc" ];
|
|
|
|
src = fetchurl {
|
|
url = "https://pkg.cppget.org/1/beta/odb/libodb-${version}.tar.gz";
|
|
hash = "sha256-04Et/wHYsWvJPLlcL0J2iOPV2SBFC6J32EleGw38K2Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [ build2 ];
|
|
build2ConfigureFlags = [
|
|
"config.bin.lib=${build2.configSharedStatic enableShared enableStatic}"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Common 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 common ODB runtime library. Every application
|
|
that includes code generated by the ODB compiler will need to link to
|
|
this library.
|
|
'';
|
|
homepage = "https://www.codesynthesis.com/products/odb/";
|
|
changelog = "https://git.codesynthesis.com/cgit/odb/libodb/tree/NEWS";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ r-burns ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|