2017-01-28 08:13:03 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, pkgconfig, asciidoc, docbook_xml_dtd_45
|
|
|
|
, docbook_xsl, libxslt, libxml2, makeWrapper
|
2018-02-24 12:06:44 +00:00
|
|
|
, dbus, libconfig, libdrm, libGL, pcre, libX11, libXcomposite, libXdamage
|
2017-01-28 08:13:03 +00:00
|
|
|
, libXinerama, libXrandr, libXrender, libXext, xwininfo }:
|
2013-12-26 00:12:40 +00:00
|
|
|
|
2018-08-29 03:47:35 +01:00
|
|
|
let
|
|
|
|
common = source: stdenv.mkDerivation (source // rec {
|
|
|
|
name = "${source.pname}-${source.version}";
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dbus libX11 libXcomposite libXdamage libXrender libXrandr libXext
|
|
|
|
libXinerama libdrm pcre libxml2 libxslt libconfig libGL
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
asciidoc
|
|
|
|
docbook_xml_dtd_45
|
|
|
|
docbook_xsl
|
|
|
|
makeWrapper
|
|
|
|
];
|
2013-12-26 00:12:40 +00:00
|
|
|
|
2018-08-29 03:47:35 +01:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/compton-trans \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ xwininfo ]}
|
2012-06-08 11:16:46 +01:00
|
|
|
'';
|
2018-08-29 03:47:35 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ ertes enzime twey ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2018-09-20 09:00:18 +01:00
|
|
|
stableSource = rec {
|
2018-08-29 03:47:35 +01:00
|
|
|
pname = "compton";
|
|
|
|
version = "0.1_beta2.5";
|
|
|
|
|
2018-09-20 09:00:18 +01:00
|
|
|
COMPTON_VERSION = version;
|
|
|
|
|
2018-08-29 03:47:35 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chjj";
|
|
|
|
repo = "compton";
|
|
|
|
rev = "b7f43ee67a1d2d08239a2eb67b7f50fe51a592a8";
|
|
|
|
sha256 = "1p7ayzvm3c63q42na5frznq3rlr1lby2pdgbvzm1zl07wagqss18";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/chjj/compton/;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-09-20 09:00:18 +01:00
|
|
|
gitSource = rec {
|
2018-08-29 03:47:35 +01:00
|
|
|
pname = "compton-git";
|
2018-09-20 09:00:18 +01:00
|
|
|
version = "2";
|
|
|
|
|
|
|
|
COMPTON_VERSION = "v${version}";
|
2018-08-29 03:47:35 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yshui";
|
|
|
|
repo = "compton";
|
2018-09-20 09:00:18 +01:00
|
|
|
rev = COMPTON_VERSION;
|
|
|
|
sha256 = "1b6jgkkjbmgm7d7qjs94h722kgbqjagcxznkh2r84hcmcl8pibjq";
|
2018-08-29 03:47:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/yshui/compton/;
|
|
|
|
};
|
2012-06-08 11:16:46 +01:00
|
|
|
};
|
2018-08-29 03:47:35 +01:00
|
|
|
in {
|
|
|
|
compton = common stableSource;
|
|
|
|
compton-git = common gitSource;
|
2012-06-08 11:16:46 +01:00
|
|
|
}
|