···11+[Desktop Entry]
22+Encoding=UTF-8
33+Name=ClipGrab
44+GenericName=Web video downloader
55+Comment=A friendly downloader for YouTube and other sites
66+Type=Application
77+Categories=Qt;AudioVideo;Audio;Video;
88+Icon=clipgrab
99+Exec=clipgrab
1010+Terminal=false
+42
pkgs/applications/video/clipgrab/default.nix
···11+{ stdenv, fetchurl, qt4 }:
22+33+let version = "3.4.9"; in
44+stdenv.mkDerivation rec {
55+ name = "clipgrab-${version}";
66+77+ src = fetchurl {
88+ sha256 = "0valq3cgx7yz11zcscz1vdjmppwbicvg0id61dcar22pyp2zkap1";
99+ url = "http://download.clipgrab.de/${name}.tar.bz2";
1010+ };
1111+1212+ meta = with stdenv.lib; {
1313+ inherit version;
1414+ description = "Video downloader for YouTube and other sites";
1515+ longDescription = ''
1616+ ClipGrab is a free downloader and converter for YouTube, Vimeo, Metacafe,
1717+ Dailymotion and many other online video sites. It converts downloaded
1818+ videos to MPEG4, MP3 or other formats in just one easy step.
1919+ '';
2020+ homepage = http://clipgrab.org/;
2121+ license = with licenses; gpl3Plus;
2222+ platforms = with platforms; linux;
2323+ maintainers = with maintainers; [ nckx ];
2424+ };
2525+2626+ buildInputs = [ qt4 ];
2727+2828+ configurePhase = ''
2929+ qmake clipgrab.pro
3030+ '';
3131+3232+ enableParallelBuilding = true;
3333+3434+ installPhase = ''
3535+ mkdir -p $out/bin
3636+ install -Dm755 clipgrab $out/bin
3737+3838+ mkdir -p $out/share
3939+ install -Dm644 icon.png $out/share/pixmaps/clipgrab.png
4040+ install -Dm644 ${./clipgrab.desktop} $out/share/applications/clipgrab.desktop
4141+ '';
4242+}