2012-01-18 21:32:37 +01:00
|
|
|
{stdenv, fetchgit, python}:
|
|
|
|
|
|
|
|
let pkgname = "youtube-dl";
|
2012-10-01 20:41:08 +02:00
|
|
|
pkgver = "2012.09.27";
|
2012-01-18 21:32:37 +01:00
|
|
|
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${pkgname}-${pkgver}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://github.com/rg3/${pkgname}";
|
2012-09-15 08:04:49 +02:00
|
|
|
rev = "refs/tags/${pkgver}";
|
2012-10-01 20:41:08 +02:00
|
|
|
sha256 = "a98f3339301324ddd6620f7b1353abed807cd8dea5586d6901d7fe69bc6a397c";
|
2012-01-18 21:32:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|