depot/third_party/nixpkgs/pkgs/development/libraries/libomxil-bellagio/default.nix
Default email 5e2a688410 Project import generated by Copybara.
GitOrigin-RevId: 5e2018f7b383aeca6824a30c0cd1978c9532a46a
2021-10-06 10:57:05 -03:00

32 lines
1,014 B
Nix

{ lib, stdenv, fetchurl }:
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 =
lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ "ac_cv_func_malloc_0_nonnull=yes" ];
patches = [
./fedora-fixes.patch
./fno-common.patch
];
doCheck = false; # fails
# Fix for #40213, probably permanent, because upstream doesn't seem to be
# developed anymore. Alternatively, gcc7Stdenv could be used.
NIX_CFLAGS_COMPILE = "-Wno-error=array-bounds -Wno-error=stringop-overflow=8";
meta = with lib; {
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;
};
}