···1+[Desktop Entry]
2+Encoding=UTF-8
3+Name=ClipGrab
4+GenericName=Web video downloader
5+Comment=A friendly downloader for YouTube and other sites
6+Type=Application
7+Categories=Qt;AudioVideo;Audio;Video;
8+Icon=clipgrab
9+Exec=clipgrab
10+Terminal=false
+42
pkgs/applications/video/clipgrab/default.nix
···000000000000000000000000000000000000000000
···1+{ stdenv, fetchurl, qt4 }:
2+3+let version = "3.4.9"; in
4+stdenv.mkDerivation rec {
5+ name = "clipgrab-${version}";
6+7+ src = fetchurl {
8+ sha256 = "0valq3cgx7yz11zcscz1vdjmppwbicvg0id61dcar22pyp2zkap1";
9+ url = "http://download.clipgrab.de/${name}.tar.bz2";
10+ };
11+12+ meta = with stdenv.lib; {
13+ inherit version;
14+ description = "Video downloader for YouTube and other sites";
15+ longDescription = ''
16+ ClipGrab is a free downloader and converter for YouTube, Vimeo, Metacafe,
17+ Dailymotion and many other online video sites. It converts downloaded
18+ videos to MPEG4, MP3 or other formats in just one easy step.
19+ '';
20+ homepage = http://clipgrab.org/;
21+ license = with licenses; gpl3Plus;
22+ platforms = with platforms; linux;
23+ maintainers = with maintainers; [ nckx ];
24+ };
25+26+ buildInputs = [ qt4 ];
27+28+ configurePhase = ''
29+ qmake clipgrab.pro
30+ '';
31+32+ enableParallelBuilding = true;
33+34+ installPhase = ''
35+ mkdir -p $out/bin
36+ install -Dm755 clipgrab $out/bin
37+38+ mkdir -p $out/share
39+ install -Dm644 icon.png $out/share/pixmaps/clipgrab.png
40+ install -Dm644 ${./clipgrab.desktop} $out/share/applications/clipgrab.desktop
41+ '';
42+}