diff options
author | Peter Simons <simons@cryp.to> | 2012-01-18 20:32:37 +0000 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2012-01-18 20:32:37 +0000 |
commit | e58052514b3c61aa1fd26d4d3f94fe7af281d375 (patch) | |
tree | b01c729ad46e39f357a828965b53bf05514656ea /pkgs/tools/misc/youtube-dl/default.nix | |
parent | 02392785c5480f104dd9a58e0d57080b0da96f99 (diff) | |
download | nixpkgs-e58052514b3c61aa1fd26d4d3f94fe7af281d375.tar nixpkgs-e58052514b3c61aa1fd26d4d3f94fe7af281d375.tar.gz nixpkgs-e58052514b3c61aa1fd26d4d3f94fe7af281d375.tar.bz2 nixpkgs-e58052514b3c61aa1fd26d4d3f94fe7af281d375.tar.lz nixpkgs-e58052514b3c61aa1fd26d4d3f94fe7af281d375.tar.xz nixpkgs-e58052514b3c61aa1fd26d4d3f94fe7af281d375.tar.zst nixpkgs-e58052514b3c61aa1fd26d4d3f94fe7af281d375.zip |
youtube-dl: new package (download clips from youtube)
svn path=/nixpkgs/trunk/; revision=31654
Diffstat (limited to 'pkgs/tools/misc/youtube-dl/default.nix')
-rw-r--r-- | pkgs/tools/misc/youtube-dl/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/misc/youtube-dl/default.nix b/pkgs/tools/misc/youtube-dl/default.nix new file mode 100644 index 00000000000..0422383ed3b --- /dev/null +++ b/pkgs/tools/misc/youtube-dl/default.nix @@ -0,0 +1,31 @@ +{stdenv, fetchgit, python}: + +let pkgname = "youtube-dl"; + pkgver = "2011.12.08"; + +in +stdenv.mkDerivation { + name = "${pkgname}-${pkgver}"; + + src = fetchgit { + url = "git://github.com/rg3/${pkgname}"; + rev = "661a807c65a154eccdddb875b45e4782ca86132c"; + sha256 = "32fd193b867b122400e9d5d32f6dfaf15704f837a9dc2ff809e1ce06712857ba"; + }; + + buildInputs = [python]; + buildPhase = "sed -i 's|#!/usr/bin/env python|#!#{python}/bin/python|' youtube-dl"; + + installPhase = '' + ensureDir $out/bin + cp youtube-dl $out/bin + ''; + + meta = { + description = "A small command-line program to download videos from YouTube.com and a few more sites"; + homepage = http://rg3.github.com/youtube-dl/; + maintainers = [ + stdenv.lib.maintainers.bluescreen303 + ]; + }; +} |