mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
v4l-utils: multiple outputs
This commit is contained in:
parent
f11c043fa2
commit
e0a2224f1e
1 changed files with 5 additions and 3 deletions
|
@ -23,6 +23,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "0k46z5gqjzg702m2vs4sv6sxynq1sj14m0pgwvl2gkgg3dfbyjhn";
|
||||
};
|
||||
|
||||
outputs = [ "dev" "out" ];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-libv4l"
|
||||
] ++ (if (alsaLib != null && libX11 != null && (qt4 != null || qt5 != null)) then [
|
||||
|
@ -36,15 +38,15 @@ stdenv.mkDerivation rec {
|
|||
"--disable-qv4l2"
|
||||
]);
|
||||
|
||||
postInstall = ''
|
||||
postFixup = ''
|
||||
# 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 ];
|
||||
|
||||
buildInputs = [ alsaLib libX11 qt4 qt5 ];
|
||||
|
||||
|
||||
propagatedBuildInputs = [ libjpeg ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
Loading…
Reference in a new issue