libv4l: fix build for non-glibc platforms

argp is a Glibc-specific feature.
This commit is contained in:
Alyssa Ross 2022-06-29 09:48:29 +00:00
parent 458d91e712
commit f031dafcc8

View File

@ -1,5 +1,5 @@
{ stdenv, lib, fetchurl, pkg-config, perl
, libjpeg, udev
, argp-standalone, libjpeg, udev
, withUtils ? true
, withGUI ? true, alsa-lib, libX11, qtbase, libGLU, wrapQtAppsHook
}:
@ -35,7 +35,9 @@ in stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config perl ] ++ lib.optional withQt wrapQtAppsHook;
buildInputs = [ udev ] ++ lib.optionals withQt [ alsa-lib libX11 qtbase libGLU ];
buildInputs = [ udev ]
++ lib.optional (!stdenv.hostPlatform.isGnu) argp-standalone
++ lib.optionals withQt [ alsa-lib libX11 qtbase libGLU ];
propagatedBuildInputs = [ libjpeg ];