summary refs log tree commit diff
path: root/pkgs/applications/window-managers/compton/default.nix
blob: d79d8c3325d70514bd91bfa01526b7ed7f4a9018 (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
56
57
58
59
60
61
{ stdenv, lib, fetchFromGitHub, pkgconfig, asciidoc, docbook_xml_dtd_45
, docbook_xsl, libxslt, libxml2, makeWrapper
, dbus, libconfig, libdrm, libGL, pcre, libX11, libXcomposite, libXdamage
, libXinerama, libXrandr, libXrender, libXext, xwininfo }:

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

  src = fetchFromGitHub {
    owner = "chjj";
    repo = "compton";
    rev = "b7f43ee67a1d2d08239a2eb67b7f50fe51a592a8";
    sha256 = "1p7ayzvm3c63q42na5frznq3rlr1lby2pdgbvzm1zl07wagqss18";
  };

  buildInputs = [
    libX11
    libXcomposite
    libXdamage
    libXrender
    libXrandr
    libXext
    libXinerama
    libdrm
    pcre
    libconfig
    dbus
    libGL
  ];

  nativeBuildInputs = [
    pkgconfig
    asciidoc
    libxml2
    docbook_xml_dtd_45
    docbook_xsl
    libxslt
    makeWrapper
  ];
  
  installFlags = [ "PREFIX=$(out)" ];

  postInstall = ''
    wrapProgram $out/bin/compton-trans \
      --prefix PATH : ${lib.makeBinPath [ xwininfo ]}
  '';

  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;
  };
}