2023-03-15 16:39:30 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libomxil-bellagio";
|
|
|
|
version = "0.9.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/omxil/omxil/Bellagio%20${version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0k6p6h4npn8p1qlgq6z3jbfld6n1bqswzvxzndki937gr0lhfg2r";
|
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags =
|
2021-02-05 17:12:51 +00:00
|
|
|
lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ "ac_cv_func_malloc_0_nonnull=yes" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-06 13:57:05 +00:00
|
|
|
patches = [
|
|
|
|
./fedora-fixes.patch
|
|
|
|
./fno-common.patch
|
2023-03-15 16:39:30 +00:00
|
|
|
# Fix stack overread: https://sourceforge.net/p/omxil/patches/8/
|
|
|
|
(fetchurl {
|
|
|
|
name = "no-overread.patch";
|
|
|
|
url = "https://sourceforge.net/p/omxil/patches/8/attachment/0001-src-base-omx_base_component.c-fix-stack-overread.patch";
|
|
|
|
hash = "sha256-ElpiDxU0Ii4Ou8ebVx4Ne9UnB6mesC8cRj77N7LdovA=";
|
|
|
|
})
|
2021-10-06 13:57:05 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
# Disable parallel build as it fails as:
|
|
|
|
# ld: cannot find -lomxil-bellagio
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false; # fails
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE =
|
2023-04-12 12:48:02 +00:00
|
|
|
# stringop-truncation: see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1028978
|
|
|
|
if stdenv.cc.isGNU then "-Wno-error=array-bounds -Wno-error=stringop-overflow=8 -Wno-error=stringop-truncation"
|
2023-02-02 18:25:31 +00:00
|
|
|
else "-Wno-error=absolute-value -Wno-error=enum-conversion -Wno-error=logical-not-parentheses -Wno-error=non-literal-null-conversion";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://omxil.sourceforge.net/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An opensource implementation of the Khronos OpenMAX Integration Layer API to access multimedia components";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "omxregister-bellagio";
|
2023-02-02 18:25:31 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|