gst-libav: add withSystemLibav option
This commit is contained in:
parent
9a3e183080
commit
7e67caa06c
@ -1,7 +1,10 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, python, yasm
|
{ stdenv, fetchurl, pkgconfig, python, yasm
|
||||||
, gst-plugins-base, bzip2
|
, gst-plugins-base, orc, bzip2
|
||||||
|
, withSystemLibav ? false, libav ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
assert withSystemLibav -> libav != null;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "gst-libav-1.2.2";
|
name = "gst-libav-1.2.2";
|
||||||
|
|
||||||
@ -17,9 +20,16 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "585eb7971006100ad771a852e07bd2f3e23bcc6eb0b1253a40b5a0e40e4e7418";
|
sha256 = "585eb7971006100ad771a852e07bd2f3e23bcc6eb0b1253a40b5a0e40e4e7418";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig python yasm ];
|
configureFlags = stdenv.lib.optionalString withSystemLibav
|
||||||
|
"--with-system-libav";
|
||||||
|
|
||||||
buildInputs = [
|
nativeBuildInputs = with stdenv.lib;
|
||||||
gst-plugins-base bzip2
|
[ pkgconfig python ]
|
||||||
];
|
++ optional (!withSystemLibav) yasm
|
||||||
|
;
|
||||||
|
|
||||||
|
buildInputs = with stdenv.lib;
|
||||||
|
[ gst-plugins-base orc bzip2 ]
|
||||||
|
++ optional withSystemLibav libav
|
||||||
|
;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user