summary refs log tree commit diff
path: root/pkgs/applications/window-managers/compton/git.nix
blob: 18325ccc1b4735ff2797abdfbc5f5ac6e0825fb3 (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
48
49
50
51
52
53
54
55
{ stdenv, fetchFromGitHub, asciidoc, dbus, docbook_xml_dtd_45,
  docbook_xml_xslt, libconfig, libdrm, libxml2, libxslt, mesa, pcre,
  pkgconfig, libXcomposite, libXdamage, libXext, libXfixes, libXinerama,
  libXrandr, libXrender }:

stdenv.mkDerivation {
  name = "compton-git-2015-04-20";

  src = fetchFromGitHub {
    owner  = "chjj";
    repo   = "compton";
    rev    = "b1889c1245e6f47eedfae6063100d5a16f584e2b";
    sha256 = "0brnbidxi7wg08yiwgnijzcyqv5lnkd74xzfymvb0i7pgy465vaf";
  };

  buildInputs = [
    asciidoc
    dbus
    docbook_xml_dtd_45
    docbook_xml_xslt
    libXcomposite
    libXdamage
    libXext
    libXfixes
    libXinerama
    libXrandr
    libXrender
    libconfig
    libdrm
    libxml2
    libxslt
    mesa
    pcre
    pkgconfig
  ];

  buildFlagsArray = ["CFLAGS=-O3 -fomit-frame-pointer"];
  installFlags = "PREFIX=$(out)";

  meta = with stdenv.lib; {
    description =
      "A fork of XCompMgr, a sample compositing manager for X servers (git version)";
    homepage = https://github.com/chjj/compton/;
    license = licenses.mit;
    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.
    '';
    maintainer = maintainers.ertes;
    platforms = platforms.linux;
  };
}