v4l-utils: multiple outputs
This commit is contained in:
parent
f11c043fa2
commit
e0a2224f1e
@ -23,6 +23,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0k46z5gqjzg702m2vs4sv6sxynq1sj14m0pgwvl2gkgg3dfbyjhn";
|
sha256 = "0k46z5gqjzg702m2vs4sv6sxynq1sj14m0pgwvl2gkgg3dfbyjhn";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
outputs = [ "dev" "out" ];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--enable-libv4l"
|
"--enable-libv4l"
|
||||||
] ++ (if (alsaLib != null && libX11 != null && (qt4 != null || qt5 != null)) then [
|
] ++ (if (alsaLib != null && libX11 != null && (qt4 != null || qt5 != null)) then [
|
||||||
@ -36,15 +38,15 @@ stdenv.mkDerivation rec {
|
|||||||
"--disable-qv4l2"
|
"--disable-qv4l2"
|
||||||
]);
|
]);
|
||||||
|
|
||||||
postInstall = ''
|
postFixup = ''
|
||||||
# Create symlink for V4l1 compatibility
|
# Create symlink for V4l1 compatibility
|
||||||
ln -s $out/include/libv4l1-videodev.h $out/include/videodev.h
|
ln -s "$dev/include/libv4l1-videodev.h" "$dev/include/videodev.h"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
|
||||||
buildInputs = [ alsaLib libX11 qt4 qt5 ];
|
buildInputs = [ alsaLib libX11 qt4 qt5 ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ libjpeg ];
|
propagatedBuildInputs = [ libjpeg ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user