2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2019-03-21 12:58:19 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, asciidoc
|
|
|
|
, docbook_xml_dtd_45
|
|
|
|
, docbook_xsl
|
|
|
|
, freetype
|
|
|
|
, judy
|
|
|
|
, libGL
|
|
|
|
, libconfig
|
|
|
|
, libdrm
|
|
|
|
, libxml2
|
|
|
|
, libxslt
|
|
|
|
, libXcomposite
|
|
|
|
, libXdamage
|
|
|
|
, libXext
|
|
|
|
, libXinerama
|
|
|
|
, libXrandr
|
|
|
|
, libXrender
|
2021-04-15 05:49:33 +01:00
|
|
|
, libXres
|
2019-03-21 12:58:19 +00:00
|
|
|
, pcre
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2019-03-21 12:58:19 +00:00
|
|
|
}:
|
2021-04-15 05:49:33 +01:00
|
|
|
|
2019-03-21 12:58:19 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-04-15 05:49:33 +01:00
|
|
|
pname = "neocomp";
|
|
|
|
version = "unstable-2021-04-06";
|
2019-03-21 12:58:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-04-15 05:49:33 +01:00
|
|
|
owner = "DelusionalLogic";
|
|
|
|
repo = "NeoComp";
|
|
|
|
rev = "ccd340d7b2dcd3f828aff958a638cc23686aee6f";
|
|
|
|
sha256 = "sha256-tLLEwpAGNVTC+N41bM7pfskIli4Yvc95wH2/NT0OZ+8=";
|
2019-03-21 12:58:19 +00:00
|
|
|
};
|
|
|
|
|
2021-04-15 05:49:33 +01:00
|
|
|
nativeBuildInputs = [
|
2019-03-21 12:58:19 +00:00
|
|
|
asciidoc
|
|
|
|
docbook_xml_dtd_45
|
|
|
|
docbook_xsl
|
2021-04-15 05:49:33 +01:00
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-03-21 12:58:19 +00:00
|
|
|
freetype
|
|
|
|
judy
|
|
|
|
libGL
|
|
|
|
libconfig
|
|
|
|
libdrm
|
|
|
|
libxml2
|
|
|
|
libxslt
|
|
|
|
libXcomposite
|
|
|
|
libXdamage
|
|
|
|
libXext
|
|
|
|
libXinerama
|
|
|
|
libXrandr
|
|
|
|
libXrender
|
2021-04-15 05:49:33 +01:00
|
|
|
libXres
|
2019-03-21 12:58:19 +00:00
|
|
|
pcre
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
"CFGDIR=${placeholder "out"}/etc/xdg/neocomp"
|
|
|
|
"ASTDIR=${placeholder "out"}/share/neocomp/assets"
|
2021-04-15 05:49:33 +01:00
|
|
|
"COMPTON_VERSION=${version}"
|
2019-03-21 12:58:19 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/compton.c --replace \
|
|
|
|
"assets_add_path(\"./assets/\");" \
|
|
|
|
"assets_add_path(\"$out/share/neocomp/assets/\");"
|
|
|
|
substituteInPlace src/assets/assets.c --replace \
|
|
|
|
"#define MAX_PATH_LENGTH 64" \
|
|
|
|
"#define MAX_PATH_LENGTH 128"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/DelusionalLogic/NeoComp";
|
2021-04-15 05:49:33 +01:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ twey fortuneteller2k ];
|
2019-03-21 12:58:19 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
description = "A fork of Compton, a compositor for X11";
|
|
|
|
longDescription = ''
|
|
|
|
NeoComp is a (hopefully) fast and (hopefully) simple compositor
|
|
|
|
for X11, focused on delivering frames from the window to the
|
|
|
|
framebuffer as quickly as possible.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|