Files
nixpkgs/pkgs/by-name/om/omniorb/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

57 lines
1.7 KiB
Nix

{
lib,
stdenv,
fetchurl,
pkg-config,
python3,
}:
stdenv.mkDerivation rec {
pname = "omniorb";
version = "4.3.3";
src = fetchurl {
url = "mirror://sourceforge/project/omniorb/omniORB/omniORB-${version}/omniORB-${version}.tar.bz2";
hash = "sha256-rM0l4stwxOM+0iew2T6WaeOMRgGWN4h8dxOYhw7UXno=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ python3 ];
enableParallelBuilding = true;
hardeningDisable = [ "format" ];
# Transform omniidl_be into a PEP420 namespace to allow other projects to define
# their omniidl backends. Especially useful for omniorbpy, the python backend.
postInstall = ''
rm $out/${python3.sitePackages}/omniidl_be/__init__.py
rm $out/${python3.sitePackages}/omniidl_be/__pycache__/__init__.*.pyc
'';
# Ensure postInstall didn't break cxx backend
# Same as 'pythonImportsCheck = ["omniidl_be.cxx"];', but outside buildPythonPackage
doInstallCheck = true;
postInstallCheck = ''
export PYTHONPATH=$out/${python3.sitePackages}:$PYTHONPATH
${lib.getExe python3} -c "import omniidl_be.cxx"
'';
meta = with lib; {
description = "Robust high performance CORBA ORB for C++ and Python";
longDescription = ''
omniORB is a robust high performance CORBA ORB for C++ and Python.
It is freely available under the terms of the GNU Lesser General Public License
(for the libraries),and GNU General Public License (for the tools).
omniORB is largely CORBA 2.6 compliant.
'';
homepage = "http://omniorb.sourceforge.net/";
license = with licenses; [
gpl2Plus
lgpl21Plus
];
maintainers = with maintainers; [ smironov ];
platforms = platforms.unix;
};
}