nixpkgs/pkgs/tools/misc/youtube-dl/default.nix
2013-10-27 16:43:25 +01:00

32 lines
819 B
Nix

{ stdenv, fetchurl, python, zip }:
let
version = "2013.10.23.2";
in
stdenv.mkDerivation rec {
name = "youtube-dl-${version}";
src = fetchurl {
url = "http://youtube-dl.org/downloads/${version}/${name}.tar.gz";
sha256 = "d3f4c9e0da165395856e690314caa5eef4382bd994dd46f041a520bf9747c35d";
};
buildInputs = [ python ];
nativeBuildInputs = [ zip ];
patchPhase = ''
rm youtube-dl
'';
configurePhase = ''
makeFlagsArray=( PREFIX=$out SYSCONFDIR=$out/etc PYTHON=${python}/bin/python )
'';
meta = {
homepage = "http://rg3.github.com/youtube-dl/";
description = "Command-line tool to download videos from YouTube.com and other sites";
platforms = with stdenv.lib.platforms; linux ++ darwin;
maintainers = with stdenv.lib.maintainers; [ bluescreen303 simons ];
};
}