summary refs log tree commit diff
path: root/pkgs/applications/video/clipgrab
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-04-08 05:09:16 +0200
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-04-08 05:09:16 +0200
commitbee0ccd1f53ca69a6f433c0b49927c7e86041179 (patch)
treea6691b6130acd63d0cb65fac38e0b619e213df83 /pkgs/applications/video/clipgrab
parent74ea55a17542da97bbb687f7c0863acd2a3d2f46 (diff)
downloadnixlib-bee0ccd1f53ca69a6f433c0b49927c7e86041179.tar
nixlib-bee0ccd1f53ca69a6f433c0b49927c7e86041179.tar.gz
nixlib-bee0ccd1f53ca69a6f433c0b49927c7e86041179.tar.bz2
nixlib-bee0ccd1f53ca69a6f433c0b49927c7e86041179.tar.lz
nixlib-bee0ccd1f53ca69a6f433c0b49927c7e86041179.tar.xz
nixlib-bee0ccd1f53ca69a6f433c0b49927c7e86041179.tar.zst
nixlib-bee0ccd1f53ca69a6f433c0b49927c7e86041179.zip
Add clipgrab 3.4.9: web video downloader and converter
Diffstat (limited to 'pkgs/applications/video/clipgrab')
-rw-r--r--pkgs/applications/video/clipgrab/clipgrab.desktop10
-rw-r--r--pkgs/applications/video/clipgrab/default.nix42
2 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/applications/video/clipgrab/clipgrab.desktop b/pkgs/applications/video/clipgrab/clipgrab.desktop
new file mode 100644
index 000000000000..4e230d1c40c5
--- /dev/null
+++ b/pkgs/applications/video/clipgrab/clipgrab.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=ClipGrab
+GenericName=Web video downloader
+Comment=A friendly downloader for YouTube and other sites
+Type=Application
+Categories=Qt;AudioVideo;Audio;Video;
+Icon=clipgrab
+Exec=clipgrab
+Terminal=false
diff --git a/pkgs/applications/video/clipgrab/default.nix b/pkgs/applications/video/clipgrab/default.nix
new file mode 100644
index 000000000000..23bf14bf857b
--- /dev/null
+++ b/pkgs/applications/video/clipgrab/default.nix
@@ -0,0 +1,42 @@
+{ stdenv, fetchurl, qt4 }:
+
+let version = "3.4.9"; in
+stdenv.mkDerivation rec {
+  name = "clipgrab-${version}";
+
+  src = fetchurl {
+    sha256 = "0valq3cgx7yz11zcscz1vdjmppwbicvg0id61dcar22pyp2zkap1";
+    url = "http://download.clipgrab.de/${name}.tar.bz2";
+  };
+
+  meta = with stdenv.lib; {
+    inherit version;
+    description = "Video downloader for YouTube and other sites";
+    longDescription = ''
+      ClipGrab is a free downloader and converter for YouTube, Vimeo, Metacafe,
+      Dailymotion and many other online video sites. It converts downloaded
+      videos to MPEG4, MP3 or other formats in just one easy step.
+    '';
+    homepage = http://clipgrab.org/;
+    license = with licenses; gpl3Plus;
+    platforms = with platforms; linux;
+    maintainers = with maintainers; [ nckx ];
+  };
+
+  buildInputs = [ qt4 ];
+
+  configurePhase = ''
+    qmake clipgrab.pro
+  '';
+
+  enableParallelBuilding = true;
+
+  installPhase = ''
+    mkdir -p $out/bin
+    install -Dm755 clipgrab $out/bin
+
+    mkdir -p $out/share
+    install -Dm644 icon.png $out/share/pixmaps/clipgrab.png
+    install -Dm644 ${./clipgrab.desktop} $out/share/applications/clipgrab.desktop
+  '';
+}