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

This commit is contained in:
Zitrone
2025-05-25 05:41:50 +02:00
parent ba5254abef
commit 6937e42168
4 changed files with 53 additions and 32 deletions
+48
View File
@@ -0,0 +1,48 @@
{
lib,
stdenv,
fetchurl,
pkg-config,
writeScript,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xtrans";
version = "1.6.0";
src = fetchurl {
url = "mirror://xorg/individual/lib/xtrans-${finalAttrs.version}.tar.xz";
hash = "sha256-+q/qFmvyRRoXPZ1ZM1KUDsZAQUXF0dpcITQjzk01npI=";
};
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
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/lib/ \
| sort -V | tail -n1)"
update-source-version ${finalAttrs.pname} "$version"
'';
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
};
meta = {
description = "X Window System Protocols Transport layer shared code";
homepage = "https://gitlab.freedesktop.org/xorg/lib/libxtrans";
license = with lib.licenses; [
mitOpenGroup
hpnd
mit
x11
hpndSellVariant
];
maintainers = [ ];
pkgConfigModules = [ "xtrans" ];
platforms = lib.platforms.unix;
};
})
+2 -31
View File
@@ -17,6 +17,7 @@
xorg-cf-files,
xorg-docs,
xorg-sgml-doctools,
xtrans,
}:
self: with self; {
@@ -29,6 +30,7 @@ self: with self; {
makedepend
pixman
xbitmaps
xtrans
;
fontalias = font-alias;
fontutil = font-util;
@@ -8103,37 +8105,6 @@ self: with self; {
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xtrans = callPackage (
{
stdenv,
pkg-config,
fetchurl,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xtrans";
version = "1.6.0";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/lib/xtrans-1.6.0.tar.xz";
sha256 = "14ly6m6ww8rl45fdmlf58m0l1ihfji936ncx7lbiligjdcbfmbzs";
};
hardeningDisable = [
"bindnow"
"relro"
];
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ ];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
pkgConfigModules = [ "xtrans" ];
platforms = lib.platforms.unix;
};
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xtrap = callPackage (
{
@@ -41,6 +41,7 @@ $pcMap{"pciaccess"} = "libpciaccess";
$pcMap{"pthread-stubs"} = "libpthreadstubs";
$pcMap{"xbitmaps"} = "xbitmaps";
$pcMap{"xcb-proto"} = "xcbproto";
$pcMap{"xtrans"} = "xtrans";
$pcMap{"\$PIXMAN"} = "pixman";
$pcMap{"\$RENDERPROTO"} = "xorgproto";
$pcMap{"\$DRI3PROTO"} = "xorgproto";
@@ -281,6 +282,7 @@ print OUT <<EOF;
xorg-cf-files,
xorg-docs,
xorg-sgml-doctools,
xtrans,
}:
self: with self; {
@@ -293,6 +295,7 @@ self: with self; {
makedepend
pixman
xbitmaps
xtrans
;
fontalias = font-alias;
fontutil = font-util;
-1
View File
@@ -198,7 +198,6 @@ mirror://xorg/individual/lib/libXxf86dga-1.1.6.tar.xz
mirror://xorg/individual/lib/libXxf86misc-1.0.4.tar.bz2
mirror://xorg/individual/lib/libXxf86vm-1.1.6.tar.xz
mirror://xorg/individual/lib/xcb-util-cursor-0.1.5.tar.xz
mirror://xorg/individual/lib/xtrans-1.6.0.tar.xz
mirror://xorg/individual/proto/xorgproto-2024.1.tar.xz
mirror://xorg/individual/util/bdftopcf-1.1.2.tar.xz
mirror://xorg/individual/util/imake-1.0.10.tar.xz