nixpkgs/pkgs/by-name/db/dbxml/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

47 lines
985 B
Nix

{ lib, stdenv, fetchurl, db62, xercesc, xqilla }:
stdenv.mkDerivation rec {
pname = "dbxml";
version = "6.1.4";
src = fetchurl {
url = "http://download.oracle.com/berkeley-db/${pname}-${version}.tar.gz";
sha256 = "a8fc8f5e0c3b6e42741fa4dfc3b878c982ff8f5e5f14843f6a7e20d22e64251a";
};
outputs = [ "bin" "dev" "out" ];
patches = [
./cxx11.patch
./incorrect-optimization.patch
];
buildInputs = [
xercesc xqilla
];
propagatedBuildInputs = [
db62
];
configureFlags = [
"--with-berkeleydb=${db62.out}"
"--with-xerces=${xercesc}"
"--with-xqilla=${xqilla}"
# code uses register storage specifier
"CXXFLAGS=-std=c++14"
];
preConfigure = ''
cd dbxml
'';
meta = with lib; {
homepage = "https://www.oracle.com/database/berkeley-db/xml.html";
description = "Embeddable XML database based on Berkeley DB";
license = licenses.agpl3Only;
maintainers = [ ];
platforms = platforms.unix;
};
}