xwud: refactor and move to pkgs/by-name from xorg namespace

This commit is contained in:
Zitrone
2025-07-31 23:39:03 +02:00
committed by quantenzitrone
parent 2f91c6aa23
commit 83ea1c3646
5 changed files with 51 additions and 38 deletions
+47
View File
@@ -0,0 +1,47 @@
{
lib,
stdenv,
fetchurl,
pkg-config,
libx11,
xorgproto,
writeScript,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xwud";
version = "1.0.7";
src = fetchurl {
url = "mirror://xorg/individual/app/xwud-${finalAttrs.version}.tar.xz";
hash = "sha256-5Vy+2rNtel9nGr+OWUiIr8SMqhFtUdQp6lPqMX7Axh4=";
};
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 display an image in XWD (X Window Dump) format";
homepage = "https://gitlab.freedesktop.org/xorg/app/xwud";
license = lib.licenses.mitOpenGroup;
mainProgram = "xwud";
maintainers = [ ];
platforms = lib.platforms.unix;
};
})
+2 -36
View File
@@ -29,6 +29,7 @@
xorg-sgml-doctools,
xtrans,
xwininfo,
xwud,
}:
self: with self; {
@@ -49,6 +50,7 @@ self: with self; {
xorgproto
xtrans
xwininfo
xwud
;
fontalias = font-alias;
fontutil = font-util;
@@ -7740,40 +7742,4 @@ self: with self; {
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xwud = callPackage (
{
stdenv,
pkg-config,
fetchurl,
libX11,
xorgproto,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xwud";
version = "1.0.7";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/app/xwud-1.0.7.tar.xz";
sha256 = "07n6q1z33sjkx8lx8lbd26m8ri5gi145k3mz39kmyykdngdbwp75";
};
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;
};
})
) { };
}
@@ -314,6 +314,7 @@ print OUT <<EOF;
xorg-sgml-doctools,
xtrans,
xwininfo,
xwud,
}:
self: with self; {
@@ -334,6 +335,7 @@ self: with self; {
xorgproto
xtrans
xwininfo
xwud
;
fontalias = font-alias;
fontutil = font-util;
-1
View File
@@ -1238,7 +1238,6 @@ self: super:
xsm = addMainProgram super.xsm { };
xstdcmap = addMainProgram super.xstdcmap { };
xwd = addMainProgram super.xwd { };
xwud = addMainProgram super.xwud { };
# convert Type1 vector fonts to OpenType fonts
fontbitstreamtype1 = super.fontbitstreamtype1.overrideAttrs (attrs: {
-1
View File
@@ -66,7 +66,6 @@ mirror://xorg/individual/app/xstdcmap-1.0.5.tar.xz
mirror://xorg/individual/app/xtrap-1.0.3.tar.bz2
mirror://xorg/individual/app/xvinfo-1.1.5.tar.xz
mirror://xorg/individual/app/xwd-1.0.9.tar.xz
mirror://xorg/individual/app/xwud-1.0.7.tar.xz
mirror://xorg/individual/data/xcursor-themes-1.0.7.tar.xz
mirror://xorg/individual/driver/xf86-input-evdev-2.11.0.tar.xz
mirror://xorg/individual/driver/xf86-input-joystick-1.6.4.tar.xz