forked from yshui/picom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' into feat-convert-legacy-parameters-to-rules
- Loading branch information
Showing
38 changed files
with
1,073 additions
and
416 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: cross | ||
on: push | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
- uses: cachix/install-nix-action@v27 | ||
with: | ||
nix_path: nixpkgs=channel:nixpkgs-unstable | ||
- uses: DeterminateSystems/magic-nix-cache-action@main | ||
- run: nix build '.#picom-cross.merged' -L | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
https://yshui.github.io/funding.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
{ asciidoctor | ||
, dbus | ||
, docbook_xml_dtd_45 | ||
, docbook_xsl | ||
, fetchFromGitHub | ||
, clang-tools_18 | ||
, llvmPackages_18 | ||
, lib | ||
, libconfig | ||
, libdrm | ||
, libev | ||
, libGL | ||
, libepoxy | ||
, libX11 | ||
, libxcb | ||
, libxdg_basedir | ||
, libXext | ||
, libxml2 | ||
, libxslt | ||
, makeWrapper | ||
, meson | ||
, ninja | ||
, pcre2 | ||
, pixman | ||
, pkg-config | ||
, python3 | ||
, stdenv | ||
, uthash | ||
, xcbutil | ||
, xcbutilimage | ||
, xcbutilrenderutil | ||
, xorgproto | ||
, xwininfo | ||
, withDebug ? false | ||
, git-ignore-nix | ||
, devShell ? false | ||
}: | ||
|
||
let | ||
versionFromMeson = s: builtins.head (builtins.match "project\\('picom',.*version: *'([0-9.]*)'.*" s); | ||
in | ||
stdenv.mkDerivation (finalAttrs: { | ||
pname = "picom"; | ||
version = versionFromMeson (builtins.readFile ./meson.build); | ||
|
||
src = git-ignore-nix.lib.gitignoreSource ./.; | ||
|
||
strictDeps = true; | ||
|
||
|
||
nativeBuildInputs = [ | ||
asciidoctor | ||
docbook_xml_dtd_45 | ||
docbook_xsl | ||
makeWrapper | ||
meson | ||
ninja | ||
pkg-config | ||
] ++ (lib.optional devShell [ | ||
clang-tools_18 | ||
llvmPackages_18.clang-unwrapped.python | ||
llvmPackages_18.libllvm | ||
(python3.withPackages (ps: with ps; [ | ||
xcffib pip dbus-next | ||
])) | ||
]); | ||
|
||
buildInputs = [ | ||
dbus | ||
libconfig | ||
libdrm | ||
libev | ||
libGL | ||
libepoxy | ||
libX11 | ||
libxcb | ||
libxdg_basedir | ||
libXext | ||
libxml2 | ||
libxslt | ||
pcre2 | ||
pixman | ||
uthash | ||
xcbutil | ||
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/ | ||
''; | ||
}) |
Oops, something went wrong.