nixpkgs/pkgs/applications/window-managers/picom/default.nix

103 lines
1.8 KiB
Nix
Raw Normal View History

2020-04-17 09:14:37 -07:00
{ asciidoc
, dbus
, docbook_xml_dtd_45
, docbook_xsl
, fetchFromGitHub
, lib
, libconfig
, libdrm
, libev
, libGL
, libX11
, libxcb
, libxdg_basedir
, libXext
, libXinerama
, libxml2
, libxslt
, makeWrapper
, meson
, ninja
, pcre
, pixman
, pkg-config
, stdenv
, uthash
, xcbutilimage
, xcbutilrenderutil
, xorgproto
, xwininfo
}:
stdenv.mkDerivation rec {
pname = "picom";
2020-11-06 14:34:02 -08:00
version = "8.2";
src = fetchFromGitHub {
2020-04-17 09:14:37 -07:00
owner = "yshui";
repo = "picom";
rev = "v${version}";
2020-11-06 14:34:02 -08:00
sha256 = "0gjksayz2xpmgglvw17ppsan2imrd1fijs579kbf27xwp503xgfl";
2019-07-19 06:48:28 -07:00
fetchSubmodules = true;
};
nativeBuildInputs = [
asciidoc
docbook_xml_dtd_45
docbook_xsl
makeWrapper
2020-04-17 09:14:37 -07:00
meson
ninja
pkg-config
uthash
];
buildInputs = [
2020-04-17 09:14:37 -07:00
dbus
libconfig
libdrm
libev
libGL
libX11
libxcb
libxdg_basedir
2020-04-17 09:14:37 -07:00
libXext
libXinerama
libxml2
libxslt
pcre
pixman
xcbutilimage
xcbutilrenderutil
xorgproto
];
mesonBuildType = "release";
mesonFlags = [
"-Dwith_docs=true"
];
installFlags = [ "PREFIX=$(out)" ];
postInstall = ''
wrapProgram $out/bin/picom-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/picom";
2021-01-06 14:20:05 -08:00
maintainers = with maintainers; [ ertes twey thiagokokada ];
platforms = platforms.linux;
};
}