2019-07-19 14:48:28 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, pkgconfig, uthash, asciidoc, docbook_xml_dtd_45
|
2019-01-30 01:54:04 +00:00
|
|
|
, docbook_xsl, libxslt, libxml2, makeWrapper, meson, ninja
|
|
|
|
, xorgproto, libxcb ,xcbutilrenderutil, xcbutilimage, pixman, libev
|
2019-06-16 20:59:06 +01:00
|
|
|
, dbus, libconfig, libdrm, libGL, pcre, libX11
|
|
|
|
, libXinerama, libXext, xwininfo, libxdg_basedir }:
|
2019-12-02 12:43:48 +00:00
|
|
|
|
2019-05-28 12:37:14 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-12-02 12:43:48 +00:00
|
|
|
pname = "picom";
|
2020-05-01 11:23:53 +01:00
|
|
|
version = "8";
|
2018-08-29 03:47:35 +01:00
|
|
|
|
2019-05-28 12:37:14 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yshui";
|
2019-12-02 12:43:48 +00:00
|
|
|
repo = "picom";
|
2019-08-16 02:48:39 +01:00
|
|
|
rev = "v${version}";
|
2020-05-01 11:23:53 +01:00
|
|
|
sha256 = "04svbv7v73q8yn9la69451rda6l2pgxcphv2zlkdqaxxdbp69195";
|
2019-07-19 14:48:28 +01:00
|
|
|
fetchSubmodules = true;
|
2018-08-29 03:47:35 +01:00
|
|
|
};
|
|
|
|
|
2019-05-28 12:37:14 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson ninja
|
|
|
|
pkgconfig
|
2019-07-19 14:48:28 +01:00
|
|
|
uthash
|
2019-05-28 12:37:14 +01:00
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2019-10-30 01:29:30 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-fno-strict-aliasing";
|
2019-05-28 12:37:14 +01:00
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dbuild_docs=true"
|
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2019-12-02 12:43:48 +00:00
|
|
|
wrapProgram $out/bin/picom-trans \
|
2019-05-28 12:37:14 +01:00
|
|
|
--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.
|
2019-01-30 01:54:04 +00:00
|
|
|
'';
|
2019-05-28 12:37:14 +01:00
|
|
|
license = licenses.mit;
|
2019-12-02 12:43:48 +00:00
|
|
|
homepage = "https://github.com/yshui/picom";
|
2019-05-28 12:37:14 +01:00
|
|
|
maintainers = with maintainers; [ ertes enzime twey ];
|
|
|
|
platforms = platforms.linux;
|
2012-06-08 11:16:46 +01:00
|
|
|
};
|
|
|
|
}
|