From bee0ccd1f53ca69a6f433c0b49927c7e86041179 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Wed, 8 Apr 2015 05:09:16 +0200 Subject: [PATCH] Add clipgrab 3.4.9: web video downloader and converter --- .../video/clipgrab/clipgrab.desktop | 10 +++++ pkgs/applications/video/clipgrab/default.nix | 42 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 3 files changed, 54 insertions(+) create mode 100644 pkgs/applications/video/clipgrab/clipgrab.desktop create mode 100644 pkgs/applications/video/clipgrab/default.nix 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 + ''; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 99d281df6840..467389aa799e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10123,6 +10123,8 @@ let enableNetworkManager = config.networking.networkmanager.enable or false; }; + clipgrab = callPackage ../applications/video/clipgrab { }; + clipit = callPackage ../applications/misc/clipit { }; bomi = callPackage ../applications/video/bomi {