eccb90a2d9
* compton-git: 5.1-rc2 -> 6.2 vsync is now a boolean option, see: https://github.com/yshui/compton/pull/130 menu-opacity is deprecated and there's a warning that says: Please use the wintype option `opacity` of `popup_menu` and `dropdown_menu` instead. * nixos/compton: Keep vSync option backwards compatible The new upstream option tries to make the best choice for the user. Therefore the behaviour should stay the same with this backwards compatibility patch. * compton-git: Remove DRM option It's deprecated and shouldn't be used. https://github.com/yshui/compton/pull/130/files#r285505456 * compton-git: Remove new_backends option Was removed in "Let old/new backends co-exist" b0c5db9f5aa500dc3568cc6fe68493df98794d4d * compton: 0.1_beta2.5 -> 6.2 Drop the legacy, unmaintained version and use the fork for real.
70 lines
1.9 KiB
Nix
70 lines
1.9 KiB
Nix
{ stdenv, lib, fetchFromGitHub, pkgconfig, asciidoc, docbook_xml_dtd_45
|
|
, docbook_xsl, libxslt, libxml2, makeWrapper, meson, ninja
|
|
, xorgproto, libxcb ,xcbutilrenderutil, xcbutilimage, pixman, libev
|
|
, dbus, libconfig, libdrm, libGL, pcre, libX11, libXcomposite, libXdamage
|
|
, libXinerama, libXrandr, libXrender, libXext, xwininfo, libxdg_basedir }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "compton";
|
|
version = "6.2";
|
|
|
|
COMPTON_VERSION = "v${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yshui";
|
|
repo = "compton";
|
|
rev = COMPTON_VERSION;
|
|
sha256 = "03fi9q8zw2qrwpkmy1bnavgfh91ci9in5fdi17g4s5s0n2l7yil7";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson ninja
|
|
pkgconfig
|
|
asciidoc
|
|
docbook_xml_dtd_45
|
|
docbook_xsl
|
|
makeWrapper
|
|
];
|
|
|
|
buildInputs = [
|
|
dbus libX11 libXext
|
|
xorgproto
|
|
libXinerama libdrm pcre libxml2 libxslt libconfig libGL
|
|
libxcb xcbutilrenderutil xcbutilimage
|
|
pixman libev
|
|
libxdg_basedir
|
|
];
|
|
|
|
NIX_CFLAGS_COMPILE = [ "-fno-strict-aliasing" ];
|
|
|
|
mesonFlags = [
|
|
"-Dbuild_docs=true"
|
|
];
|
|
|
|
preBuild = ''
|
|
git() { echo "v${version}"; }
|
|
export -f git
|
|
'';
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/compton-trans \
|
|
--prefix PATH : ${lib.makeBinPath [ xwininfo ]}
|
|
'';
|
|
|
|
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;
|
|
homepage = "https://github.com/yshui/compton";
|
|
maintainers = with maintainers; [ ertes enzime twey ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|