
As with several other packages, we have to tell autoconf to please assume malloc works properly.
69 lines
1.4 KiB
Nix
69 lines
1.4 KiB
Nix
{
|
|
autoreconfHook,
|
|
fetchFromGitHub,
|
|
gitUpdater,
|
|
lib,
|
|
libiconv,
|
|
libintl,
|
|
stdenv,
|
|
testers,
|
|
validatePkgConfig,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "zvbi";
|
|
version = "0.2.44";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zapping-vbi";
|
|
repo = "zvbi";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-knc9PejugU6K4EQflfz91keZr3ZJqZu2TKFQFFJrxiI=";
|
|
};
|
|
|
|
configureFlags = lib.optionals (!lib.systems.equals stdenv.buildPlatform stdenv.hostPlatform) [
|
|
"ac_cv_func_malloc_0_nonnull=yes"
|
|
"ac_cv_func_realloc_0_nonnull=yes"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
validatePkgConfig
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
libiconv
|
|
libintl
|
|
];
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"man"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
passthru = {
|
|
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
updateScript = gitUpdater { rev-prefix = "v"; };
|
|
};
|
|
|
|
meta = {
|
|
description = "Vertical Blanking Interval (VBI) utilities";
|
|
homepage = "https://github.com/zapping-vbi/zvbi";
|
|
changelog = "https://github.com/zapping-vbi/zvbi/blob/${finalAttrs.src.rev}/ChangeLog";
|
|
pkgConfigModules = [ "zvbi-0.2" ];
|
|
license = with lib.licenses; [
|
|
bsd2
|
|
bsd3
|
|
gpl2
|
|
gpl2Plus
|
|
lgpl21Plus
|
|
lgpl2Plus
|
|
mit
|
|
];
|
|
maintainers = with lib.maintainers; [ jopejoe1 ];
|
|
};
|
|
})
|