2021-02-05 17:12:51 +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
|
|
|
|
];
|
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-02-02 18:25:31 +00:00
|
|
|
if stdenv.cc.isGNU then "-Wno-error=array-bounds -Wno-error=stringop-overflow=8"
|
|
|
|
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";
|
2023-02-02 18:25:31 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|