mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
gst-libav: add withSystemLibav option
This commit is contained in:
parent
9a3e183080
commit
7e67caa06c
@ -1,7 +1,10 @@
|
||||
{ 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 {
|
||||
name = "gst-libav-1.2.2";
|
||||
|
||||
@ -17,9 +20,16 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "585eb7971006100ad771a852e07bd2f3e23bcc6eb0b1253a40b5a0e40e4e7418";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig python yasm ];
|
||||
configureFlags = stdenv.lib.optionalString withSystemLibav
|
||||
"--with-system-libav";
|
||||
|
||||
buildInputs = [
|
||||
gst-plugins-base bzip2
|
||||
];
|
||||
nativeBuildInputs = with stdenv.lib;
|
||||
[ pkgconfig python ]
|
||||
++ optional (!withSystemLibav) yasm
|
||||
;
|
||||
|
||||
buildInputs = with stdenv.lib;
|
||||
[ gst-plugins-base orc bzip2 ]
|
||||
++ optional withSystemLibav libav
|
||||
;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user