xcompmgr: refactor & move to pkgs/by-name from xorg namespace

This commit is contained in:
quantenzitrone
2025-09-24 18:28:36 +02:00
parent 69c34bfba4
commit 63640282de
6 changed files with 63 additions and 48 deletions
+59
View File
@@ -0,0 +1,59 @@
{
lib,
stdenv,
fetchurl,
pkg-config,
xorgproto,
libxcomposite,
libxdamage,
libxext,
libxfixes,
libxrender,
writeScript,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xcompmgr";
version = "1.1.10";
src = fetchurl {
url = "mirror://xorg/individual/app/xcompmgr-${finalAttrs.version}.tar.xz";
hash = "sha256-eCT3CcTyJDLq6nVC7JM4Tl3Uj2/LhcEv+C1yFCOwuY8=";
};
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
xorgproto
libxcomposite
libxdamage
libxext
libxfixes
libxrender
];
passthru = {
updateScript = writeScript "update-${finalAttrs.pname}" ''
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p common-updater-scripts
version="$(list-directory-versions --pname ${finalAttrs.pname} \
--url https://xorg.freedesktop.org/releases/individual/app/ \
| sort -V | tail -n1)"
update-source-version ${finalAttrs.pname} "$version"
'';
};
meta = {
description = "Sample X11 compositing manager";
longDescription = ''
xcompmgr is a sample compositing manager for X servers supporting the XFIXES, DAMAGE, RENDER
and COMPOSITE extensions. It enables basic eye-candy effects.
'';
homepage = "https://gitlab.freedesktop.org/xorg/app/xcompmgr";
license = lib.licenses.hpndSellVariant;
mainProgram = "xcompmgr";
maintainers = [ ];
platforms = lib.platforms.unix;
};
})
+2 -44
View File
@@ -95,6 +95,7 @@
xcalc,
xcb-proto,
xcmsdb,
xcompmgr,
xconsole,
xcursorgen,
xcursor-themes,
@@ -161,6 +162,7 @@ self: with self; {
xbitmaps
xcalc
xcmsdb
xcompmgr
xconsole
xcursorgen
xdriinfo
@@ -1269,50 +1271,6 @@ self: with self; {
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xcompmgr = callPackage (
{
stdenv,
pkg-config,
fetchurl,
libXcomposite,
libXdamage,
libXext,
libXfixes,
xorgproto,
libXrender,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xcompmgr";
version = "1.1.10";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/app/xcompmgr-1.1.10.tar.xz";
sha256 = "13xrn0ii8widz0pw31fbdy7x8paf729yqhkmxbm3497jqh4zf93q";
};
hardeningDisable = [
"bindnow"
"relro"
];
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libXcomposite
libXdamage
libXext
libXfixes
xorgproto
libXrender
];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
pkgConfigModules = [ ];
platforms = lib.platforms.unix;
};
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xdm = callPackage (
{
@@ -422,6 +422,7 @@ print OUT <<EOF;
xcalc,
xcb-proto,
xcmsdb,
xcompmgr,
xconsole,
xcursorgen,
xcursor-themes,
@@ -488,6 +489,7 @@ self: with self; {
xbitmaps
xcalc
xcmsdb
xcompmgr
xconsole
xcursorgen
xdriinfo
-1
View File
@@ -720,7 +720,6 @@ self: super:
});
xclock = addMainProgram super.xclock { };
xcompmgr = addMainProgram super.xcompmgr { };
xinit =
(super.xinit.override {
-1
View File
@@ -5,7 +5,6 @@ mirror://xorg/individual/app/iceauth-1.0.10.tar.xz
mirror://xorg/individual/app/oclock-1.0.6.tar.xz
mirror://xorg/individual/app/setxkbmap-1.3.4.tar.xz
mirror://xorg/individual/app/xclock-1.1.1.tar.xz
mirror://xorg/individual/app/xcompmgr-1.1.10.tar.xz
mirror://xorg/individual/app/xdm-1.1.17.tar.xz
mirror://xorg/individual/app/xdpyinfo-1.3.4.tar.xz
mirror://xorg/individual/app/xeyes-1.3.0.tar.xz
-2
View File
@@ -13357,8 +13357,6 @@ with pkgs;
xca = qt6Packages.callPackage ../applications/misc/xca { };
inherit (xorg) xcompmgr;
xdg-desktop-portal = callPackage ../development/libraries/xdg-desktop-portal { };
xdg-desktop-portal-hyprland =