youtube-dl: wrap with ffmpeg
youtube-dl uses ffmpeg for post-processing and fixups. The ffmpeg used can be overridden or libav can be substituted.
This commit is contained in:
parent
ace8dfa22c
commit
cbfaea8191
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchurl, python, zip, pandoc }:
|
{ stdenv, fetchurl, makeWrapper, python, zip, pandoc, ffmpeg }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "2015.03.24";
|
version = "2015.03.24";
|
||||||
|
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "1m462hcgizdp59s9h62hjwhq4vjrgmck23x2bh5jvb9vjpcfqjxv";
|
sha256 = "1m462hcgizdp59s9h62hjwhq4vjrgmck23x2bh5jvb9vjpcfqjxv";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ python ];
|
buildInputs = [ python makeWrapper ];
|
||||||
nativeBuildInputs = [ zip pandoc ];
|
nativeBuildInputs = [ zip pandoc ];
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
|
@ -22,6 +22,11 @@ stdenv.mkDerivation rec {
|
||||||
makeFlagsArray=( PREFIX=$out SYSCONFDIR=$out/etc PYTHON=${python}/bin/python )
|
makeFlagsArray=( PREFIX=$out SYSCONFDIR=$out/etc PYTHON=${python}/bin/python )
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
# ffmpeg is used for post-processing and fixups
|
||||||
|
wrapProgram $out/bin/youtube-dl --prefix PATH : "${ffmpeg}/bin"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://rg3.github.com/youtube-dl/";
|
homepage = "http://rg3.github.com/youtube-dl/";
|
||||||
repositories.git = https://github.com/rg3/youtube-dl.git;
|
repositories.git = https://github.com/rg3/youtube-dl.git;
|
||||||
|
|
Loading…
Reference in a new issue