summary refs log tree commit diff
path: root/pkgs/applications/video/quvi/tool.nix
blob: 807e3954d6feae0cf05cd908b1a8017c5a27779b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{stdenv, fetchurl, pkgconfig, lua5, curl, quvi_scripts, libquvi, lua5_sockets, glib, makeWrapper}:

stdenv.mkDerivation rec {
  name = "quvi-${version}";
  version="0.9.5";

  src = fetchurl {
    url = "mirror://sourceforge/quvi/quvi-${version}.tar.xz";
    sha256 = "1h52s265rp3af16dvq1xlscp2926jqap2l4ah94vrfchv6m1hffb";
  };

  buildInputs = [ pkgconfig lua5 curl quvi_scripts libquvi glib makeWrapper ];
  postInstall = ''
      wrapProgram $out/bin/quvi --set LUA_PATH "${lua5_sockets}/share/lua/${lua5.luaversion}/?.lua"
  '';

  meta = {
    description = "Web video downloader";
    homepage = http://quvi.sf.net;
    license = "LGPLv2.1+";
    platforms = stdenv.lib.platforms.linux;
    maintainers = [ stdenv.lib.maintainers.mornfall ];
  };
}