uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
117
pkgs/applications/window-managers/picom/default.nix
Normal file
117
pkgs/applications/window-managers/picom/default.nix
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
{ 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
|
||||
, withDebug ? false
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "picom";
|
||||
version = "9.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "yshui";
|
||||
repo = "picom";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-Fqk6bPAOg4muxmSP+ezpGUNw6xrMWchZACKemeA08mA=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
asciidoc
|
||||
docbook_xml_dtd_45
|
||||
docbook_xsl
|
||||
makeWrapper
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
uthash
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
dbus
|
||||
libconfig
|
||||
libdrm
|
||||
libev
|
||||
libGL
|
||||
libX11
|
||||
libxcb
|
||||
libxdg_basedir
|
||||
libXext
|
||||
libXinerama
|
||||
libxml2
|
||||
libxslt
|
||||
pcre
|
||||
pixman
|
||||
xcbutilimage
|
||||
xcbutilrenderutil
|
||||
xorgproto
|
||||
];
|
||||
|
||||
# Use "debugoptimized" instead of "debug" so perhaps picom works better in
|
||||
# normal usage too, not just temporary debugging.
|
||||
mesonBuildType = if withDebug then "debugoptimized" else "release";
|
||||
dontStrip = withDebug;
|
||||
|
||||
mesonFlags = [
|
||||
"-Dwith_docs=true"
|
||||
];
|
||||
|
||||
installFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
# 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 = ''
|
||||
wrapProgram $out/bin/picom-trans \
|
||||
--prefix PATH : ${lib.makeBinPath [ xwininfo ]}
|
||||
'' + lib.optionalString withDebug ''
|
||||
cp -r ../src $out/
|
||||
'';
|
||||
|
||||
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.
|
||||
|
||||
The package can be installed in debug mode as:
|
||||
|
||||
picom.override { withDebug = true; }
|
||||
|
||||
For gdb to find the source files, you need to run gdb in the bin directory
|
||||
of picom package in the nix store.
|
||||
'';
|
||||
license = licenses.mit;
|
||||
homepage = "https://github.com/yshui/picom";
|
||||
maintainers = with maintainers; [ ertes twey thiagokokada ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
13
pkgs/applications/window-managers/picom/picom-next.nix
Normal file
13
pkgs/applications/window-managers/picom/picom-next.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ picom, lib, fetchFromGitHub }:
|
||||
|
||||
picom.overrideAttrs (oldAttrs: rec {
|
||||
pname = "picom-next";
|
||||
version = "unstable-2022-02-05";
|
||||
src = fetchFromGitHub {
|
||||
owner = "yshui";
|
||||
repo = "picom";
|
||||
rev = "928963721c8789fc5f27949e8b0730771aab940d";
|
||||
sha256 = "sha256-qu9HnUG5VQbiSgduW1oR/tVvzEckaD2TWzds4R5zI+Y=";
|
||||
};
|
||||
meta.maintainers = with lib.maintainers; oldAttrs.meta.maintainers ++ [ GKasparov ];
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue