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
|
|
|
|
|
|
|
|
# Fix for #40213, probably permanent, because upstream doesn't seem to be
|
|
|
|
# developed anymore. Alternatively, gcc7Stdenv could be used.
|
2021-01-05 17:05:55 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=array-bounds -Wno-error=stringop-overflow=8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/omxil/";
|
|
|
|
description = "An opensource implementation of the Khronos OpenMAX Integration Layer API to access multimedia components";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|