summary refs log tree commit diff
path: root/pkgs/applications/window-managers/compiz/default.nix
blob: 80ae441c5f7c185c6347919038fefcd4341754c1 (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
31
32
33
{ stdenv, fetchurl, pkgconfig, libpng, libXcomposite, libXfixes
, libXdamage, libXrandr, libXinerama, libICE, libSM
, startupnotification, libXrender, xextproto, mesa, gtk, libwnck, GConf
, libgnome, libgnomeui, metacity
, gnomegtk, glib, pango, libglade, libgtkhtml, gtkhtml, libgnomecanvas, libgnomeprint, libgnomeprintui, gnomepanel
, librsvg, fuse
}:

stdenv.mkDerivation {
  name = "compiz-0.5.0";
  src = fetchurl {
    url = http://xorg.freedesktop.org/archive/individual/app/compiz-0.5.0.tar.gz;
    sha256 = "1fac5fc37b218k34lpxqlhs7srqxm7jly0hfncs3ghmjmxdlj03y";
  };
  patches = [
    ./tfp-server-extension.patch
  ];
  buildInputs = [
    pkgconfig libXrender xextproto gtk libwnck GConf libgnome libgnomeui metacity gnomegtk glib pango libglade libgtkhtml gtkhtml libgnomecanvas libgnomeprint libgnomeprintui gnomepanel librsvg fuse
  ];
  propagatedBuildInputs = [
    libpng libXcomposite libXfixes libXdamage libXrandr libXinerama
    libICE libSM startupnotification mesa GConf
  ];
  configureFlags = "--enable-gtk --enable-fuse --enable-annotate --enable-librsvg";

  postFixup = "
    for i in $out/bin/*; do
     patchelf --set-rpath /var/run/opengl-driver/lib:$(patchelf --print-rpath $i) $i
    done
  ";

}