about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/video/xvidcap/default.nix
blob: 20d4d84741ccd6f50232692b7439d8549f1ad7da (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
26
27
28
29
30
{ stdenv, fetchurl, perlPackages, pkgconfig, gtk2
, scrollkeeper, libglade, libXmu, libX11, libXext, gettext
, lame, libXfixes, libXdamage }:

stdenv.mkDerivation {
  name = "xvidcap-1.1.7";

  src = fetchurl {
    url = "mirror://sourceforge/xvidcap/xvidcap-1.1.7.tar.gz";
    sha256 = "0p8rhpyhxgy37crf1xk1046z4p663jg7ww776jw92pld3s024ihm";
  };

  patches = [ ./xlib.patch ];

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [
    gtk2 scrollkeeper
    libglade libXmu gettext lame libXdamage libXfixes libXext libX11
  ] ++ (with perlPackages; [ perl XMLParser ]);

  # !!! don't know why this is necessary
  NIX_LDFLAGS = "-lXext -lX11 -lz -lgcc_s";

  meta = with stdenv.lib; {
    description = "Screencast video catpuring tool";
    homepage = "http://xvidcap.sourceforge.net/";
    license = stdenv.lib.licenses.gpl2;
    platforms = platforms.linux;
  };
}