summary refs log tree commit diff
path: root/pkgs/applications/window-managers/compton/default.nix
blob: 5a79c0829b5a08df11757c7d2f7a22898161f634 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ stdenv, fetchurl, pkgconfig, dbus, libconfig, libdrm, libxml2, mesa, pcre,
  libXcomposite, libXfixes, libXdamage, libXinerama, libXrandr, libXrender,
  libXext, xwininfo }:

stdenv.mkDerivation rec {
  name = "compton-0.1_beta2";

  src = fetchurl {
    url = https://github.com/chjj/compton/releases/download/v0.1_beta2/compton-git-v0.1_beta2-2013-10-21.tar.xz;
    sha256 = "1mpgn1d98dv66xs2j8gaxjiw26nzwl9a641lrday7h40g3k45g9v";
  };

  buildInputs = [
    pkgconfig
    dbus
    libconfig
    libdrm
    libxml2
    mesa
    pcre
    libXcomposite
    libXfixes
    libXdamage
    libXinerama
    libXrandr
    libXrender
    libXext
  ];
  
  propagatedBuildInputs = [ xwininfo ];
  
  installFlags = "PREFIX=$(out)";

  meta = with stdenv.lib; {
    homepage = https://github.com/chjj/compton/;
    description = "A fork of XCompMgr, a sample compositing manager for X servers";
    longDescription = ''
      A fork of XCompMgr, which is a sample compositing manager for X
      servers supporting the XFIXES, DAMAGE, RENDER, and COMPOSITE
      extensions. It enables basic eye-candy effects. This fork adds
      additional features, such as additional effects, and a fork at a
      well-defined and proper place.
    '';
    license = licenses.mit;
    platforms = platforms.linux;
  };
}