nixpkgs/pkgs/tools/misc/youtube-dl/default.nix
aszlig e678cd2611
youtube-dl: Update to version 2012.02.27.
In addition, we're now switching to using refs/tags from git rather than commit
refs directly, which has the advantage, that we don't have to do bookkeeping
twice, where people forget to increment the version in nixpkgs.

This happened for the previous version, where `pkgver` had the value
"2011.12.08", but in rg3/youtube-dl@661a807c65 the
version actually is "2012.01.08b".

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2012-09-15 08:10:35 +02:00

32 lines
768 B
Nix

{stdenv, fetchgit, python}:
let pkgname = "youtube-dl";
pkgver = "2012.02.27";
in
stdenv.mkDerivation {
name = "${pkgname}-${pkgver}";
src = fetchgit {
url = "git://github.com/rg3/${pkgname}";
rev = "refs/tags/${pkgver}";
sha256 = "17270ba14f42e8f2813bc6a0eb3674e51592eede69612e156e7d99a96fd147ce";
};
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
];
};
}