about summary refs log tree commit diff
path: root/pkgs/applications/misc/tint2/default.nix
blob: 9eb3ed13af5817e15f0c7d15336f0186f2a9e90d (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
{ stdenv, fetchurl, pkgconfig, cmake, pango, cairo, glib, imlib2, libXinerama
, libXrender, libXcomposite, libXdamage, libX11, libXrandr, gtk, libpthreadstubs
, libXdmcp
}:

stdenv.mkDerivation rec {
  name = "tint2-${version}";
  version = "0.11";

  src = fetchurl {
    url = "http://tint2.googlecode.com/files/${name}.tar.bz2";
    sha256 = "07a74ag7lhc6706z34zvqj2ikyyl7wnzisfxpld67ljpc1m6w47y";
  };
        
  buildInputs = [ pkgconfig cmake pango cairo glib imlib2 libXinerama
    libXrender libXcomposite libXdamage libX11 libXrandr gtk libpthreadstubs
    libXdmcp
  ];

  preConfigure = "substituteInPlace CMakeLists.txt --replace /etc $out/etc";

  cmakeFlags = [
    "-DENABLE_TINT2CONF=0"
  ];

  meta = {
    homepage = http://code.google.com/p/tint2;
    license = stdenv.lib.licenses.gpl2;
    description = "A simple panel/taskbar unintrusive and light (memory / cpu / aestetic)";
    platforms = stdenv.lib.platforms.linux;
  };
}