xgc: 1.0.6 -> 1.0.7, refactor & move to pkgs/by-name from xorg namespace

This commit is contained in:
quantenzitrone
2025-08-29 15:21:30 +02:00
committed by Alyssa Ross
parent 240d5045b6
commit 47b8e80c55
5 changed files with 60 additions and 42 deletions
+56
View File
@@ -0,0 +1,56 @@
{
lib,
stdenv,
fetchurl,
pkg-config,
libxaw,
libxt,
wrapWithXFileSearchPathHook,
writeScript,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xgc";
version = "1.0.7";
src = fetchurl {
url = "mirror://xorg/individual/app/xgc-${finalAttrs.version}.tar.xz";
hash = "sha256-2FgljAXqrC0fSLtEgg3C3OCmhgGhT/+XhTxytI0bfQg=";
};
strictDeps = true;
nativeBuildInputs = [
pkg-config
wrapWithXFileSearchPathHook
];
buildInputs = [
libxaw
libxt
];
installFlags = [ "appdefaultdir=$(out)/share/X11/app-defaults" ];
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 = "Demo to show various features of the X11 core protocol graphics primitives";
homepage = "https://gitlab.freedesktop.org/xorg/app/xgc";
license = with lib.licenses; [
x11
mit
];
mainProgram = "xgc";
maintainers = [ ];
platforms = lib.platforms.unix;
};
})
+2 -40
View File
@@ -66,6 +66,7 @@
xev,
xfsinfo,
xgamma,
xgc,
xkeyboard-config,
xlsatoms,
xlsclients,
@@ -110,6 +111,7 @@ self: with self; {
xev
xfsinfo
xgamma
xgc
xlsatoms
xlsclients
xlsfonts
@@ -4922,46 +4924,6 @@ self: with self; {
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xgc = callPackage (
{
stdenv,
pkg-config,
fetchurl,
libXaw,
libXt,
wrapWithXFileSearchPathHook,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xgc";
version = "1.0.6";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/app/xgc-1.0.6.tar.xz";
sha256 = "0h5jm2946f5m1g8a3qh1c01h3zrsjjivi09vi9rmij2frvdvp1vv";
};
hardeningDisable = [
"bindnow"
"relro"
];
strictDeps = true;
nativeBuildInputs = [
pkg-config
wrapWithXFileSearchPathHook
];
buildInputs = [
libXaw
libXt
];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
pkgConfigModules = [ ];
platforms = lib.platforms.unix;
};
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xhost = callPackage (
{
@@ -382,6 +382,7 @@ print OUT <<EOF;
xev,
xfsinfo,
xgamma,
xgc,
xkeyboard-config,
xlsatoms,
xlsclients,
@@ -426,6 +427,7 @@ self: with self; {
xev
xfsinfo
xgamma
xgc
xlsatoms
xlsclients
xlsfonts
-1
View File
@@ -965,7 +965,6 @@ self: super:
xfd = addMainProgram super.xfd { };
xfontsel = addMainProgram super.xfontsel { };
xfs = addMainProgram super.xfs { };
xgc = addMainProgram super.xgc { };
xhost = addMainProgram super.xhost { };
xinput = addMainProgram super.xinput { };
xkbevd = addMainProgram super.xkbevd { };
-1
View File
@@ -22,7 +22,6 @@ mirror://xorg/individual/app/xeyes-1.3.0.tar.xz
mirror://xorg/individual/app/xfd-1.1.4.tar.xz
mirror://xorg/individual/app/xfontsel-1.1.1.tar.xz
mirror://xorg/individual/app/xfs-1.2.2.tar.xz
mirror://xorg/individual/app/xgc-1.0.6.tar.xz
mirror://xorg/individual/app/xhost-1.0.10.tar.xz
mirror://xorg/individual/app/xinit-1.4.4.tar.xz
mirror://xorg/individual/app/xinput-1.6.4.tar.xz