xrefresh: refactor and migrate to pkgs/by-name from xorg namespace

This commit is contained in:
Zitrone
2025-07-31 23:32:00 +02:00
committed by quantenzitrone
parent 59a16f2888
commit ae18c40b85
5 changed files with 54 additions and 38 deletions
+50
View File
@@ -0,0 +1,50 @@
{
lib,
stdenv,
fetchurl,
pkg-config,
libx11,
xorgproto,
writeScript,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xrefresh";
version = "1.1.0";
src = fetchurl {
url = "mirror://xorg/individual/app/xrefresh-${finalAttrs.version}.tar.xz";
hash = "sha256-Ke1ZLV7ONaMCkATYxG8wAvkpcIcKlsEeOLr38RIri18=";
};
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libx11
xorgproto
];
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 = "Utility to refresh all or part of an X screen";
homepage = "https://gitlab.freedesktop.org/xorg/app/xrefresh";
license = with lib.licenses; [
mitOpenGroup
hpnd
];
mainProgram = "xrefresh";
maintainers = [ ];
platforms = lib.platforms.unix;
};
})
+2 -36
View File
@@ -28,6 +28,7 @@
xorgproto,
xorg-sgml-doctools,
xprop,
xrefresh,
xtrans,
}:
@@ -48,6 +49,7 @@ self: with self; {
xbitmaps
xorgproto
xprop
xrefresh
xtrans
;
fontalias = font-alias;
@@ -7384,42 +7386,6 @@ self: with self; {
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xrefresh = callPackage (
{
stdenv,
pkg-config,
fetchurl,
libX11,
xorgproto,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xrefresh";
version = "1.1.0";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/app/xrefresh-1.1.0.tar.xz";
sha256 = "0pwb5c9g3xxs70gc35hahxq2ky8261pw9n04j01a6dffbqnmkv99";
};
hardeningDisable = [
"bindnow"
"relro"
];
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libX11
xorgproto
];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
pkgConfigModules = [ ];
platforms = lib.platforms.unix;
};
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xset = callPackage (
{
@@ -313,6 +313,7 @@ print OUT <<EOF;
xorgproto,
xorg-sgml-doctools,
xprop,
xrefresh,
xtrans,
}:
@@ -333,6 +334,7 @@ self: with self; {
xbitmaps
xorgproto
xprop
xrefresh
xtrans
;
fontalias = font-alias;
-1
View File
@@ -1231,7 +1231,6 @@ self: super:
};
});
xrefresh = addMainProgram super.xrefresh { };
xset = addMainProgram super.xset { };
xsetroot = addMainProgram super.xsetroot { };
xsm = addMainProgram super.xsm { };
-1
View File
@@ -57,7 +57,6 @@ mirror://xorg/individual/app/xmore-1.0.4.tar.xz
mirror://xorg/individual/app/xpr-1.2.0.tar.xz
mirror://xorg/individual/app/xrandr-1.5.3.tar.xz
mirror://xorg/individual/app/xrdb-1.2.2.tar.xz
mirror://xorg/individual/app/xrefresh-1.1.0.tar.xz
mirror://xorg/individual/app/xset-1.2.5.tar.xz
mirror://xorg/individual/app/xsetroot-1.1.3.tar.xz
mirror://xorg/individual/app/xsm-1.0.6.tar.xz