Unverified Commit 0b4a7c77 authored by Gutyina Gergő's avatar Gutyina Gergő
Browse files

picom: nixfmt

parent c9eccadd
Loading
Loading
Loading
Loading
+46 −38
Original line number Diff line number Diff line
{ asciidoctor
, dbus
, docbook_xml_dtd_45
, docbook_xsl
, fetchFromGitHub
, lib
, libconfig
, libdrm
, libev
, libGL
, libepoxy
, libX11
, libxcb
, libxdg_basedir
, libXext
, libxml2
, libxslt
, makeWrapper
, meson
, ninja
, pcre2
, pixman
, pkg-config
, stdenv
, uthash
, xcbutil
, xcbutilimage
, xcbutilrenderutil
, xorgproto
, xwininfo
, withDebug ? false
{
  asciidoctor,
  dbus,
  docbook_xml_dtd_45,
  docbook_xsl,
  fetchFromGitHub,
  lib,
  libconfig,
  libdrm,
  libev,
  libGL,
  libepoxy,
  libX11,
  libxcb,
  libxdg_basedir,
  libXext,
  libxml2,
  libxslt,
  makeWrapper,
  meson,
  ninja,
  pcre2,
  pixman,
  pkg-config,
  stdenv,
  uthash,
  xcbutil,
  xcbutilimage,
  xcbutilrenderutil,
  xorgproto,
  xwininfo,
  withDebug ? false,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -90,10 +91,12 @@ stdenv.mkDerivation (finalAttrs: {

  # In debug mode, also copy src directory to store. If you then run `gdb picom`
  # in the bin directory of picom store path, gdb finds the source files.
  postInstall = ''
  postInstall =
    ''
      wrapProgram $out/bin/picom-trans \
        --prefix PATH : ${lib.makeBinPath [ xwininfo ]}
  '' + lib.optionalString withDebug ''
    ''
    + lib.optionalString withDebug ''
      cp -r ../src $out/
    '';

@@ -115,7 +118,12 @@ stdenv.mkDerivation (finalAttrs: {
    '';
    license = licenses.mit;
    homepage = "https://github.com/yshui/picom";
    maintainers = with maintainers; [ ertes gepbird twey thiagokokada ];
    maintainers = with maintainers; [
      ertes
      gepbird
      twey
      thiagokokada
    ];
    platforms = platforms.linux;
    mainProgram = "picom";
  };