libxau: refactor, move to pkgs/by-name and rename from xorg.libXau
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
xorgproto,
|
||||
writeScript,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libxau";
|
||||
version = "1.0.12";
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
"dev"
|
||||
];
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/lib/libXau-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-dNDk36PTmtiTnpm9o39ZZ6ulKCEQdoKEZNJ3fUd/wPs=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
propagatedBuildInputs = [ 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 libXau \
|
||||
--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 = "Functions for handling Xauthority files and entries.";
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/lib/libxau";
|
||||
license = lib.licenses.mitOpenGroup;
|
||||
maintainers = [ ];
|
||||
pkgConfigModules = [ "xau" ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -8,6 +8,7 @@
|
||||
imake,
|
||||
libpciaccess,
|
||||
libpthread-stubs,
|
||||
libxau,
|
||||
libxcvt,
|
||||
libxdmcp,
|
||||
lndir,
|
||||
@@ -46,6 +47,7 @@ self: with self; {
|
||||
fontalias = font-alias;
|
||||
fontutil = font-util;
|
||||
libpthreadstubs = libpthread-stubs;
|
||||
libXau = libxau;
|
||||
libXdmcp = libxdmcp;
|
||||
utilmacros = util-macros;
|
||||
xcbproto = xcb-proto;
|
||||
@@ -2032,38 +2034,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
libXau = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
xorgproto,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libXau";
|
||||
version = "1.0.12";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/lib/libXau-1.0.12.tar.xz";
|
||||
sha256 = "1yy0gx3psxyjcj284xhh44labav7b5zs7gcrks9xi6nklggy9l3l";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ xorgproto ];
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
meta = {
|
||||
pkgConfigModules = [ "xau" ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
libXaw = callPackage (
|
||||
{
|
||||
|
||||
@@ -39,6 +39,7 @@ $pcMap{"hwdata"} = "hwdata";
|
||||
$pcMap{"fontutil"} = "fontutil";
|
||||
$pcMap{"pciaccess"} = "libpciaccess";
|
||||
$pcMap{"pthread-stubs"} = "libpthreadstubs";
|
||||
$pcMap{"xau"} = "libXau";
|
||||
$pcMap{"xbitmaps"} = "xbitmaps";
|
||||
$pcMap{"xcb-proto"} = "xcbproto";
|
||||
$pcMap{"xdmcp"} = "libXdmcp";
|
||||
@@ -283,6 +284,7 @@ print OUT <<EOF;
|
||||
imake,
|
||||
libpciaccess,
|
||||
libpthread-stubs,
|
||||
libxau,
|
||||
libxcvt,
|
||||
libxdmcp,
|
||||
lndir,
|
||||
@@ -321,6 +323,7 @@ self: with self; {
|
||||
fontalias = font-alias;
|
||||
fontutil = font-util;
|
||||
libpthreadstubs = libpthread-stubs;
|
||||
libXau = libxau;
|
||||
libXdmcp = libxdmcp;
|
||||
utilmacros = util-macros;
|
||||
xcbproto = xcb-proto;
|
||||
|
||||
@@ -235,14 +235,6 @@ self: super:
|
||||
};
|
||||
});
|
||||
|
||||
libXau = super.libXau.overrideAttrs (attrs: {
|
||||
outputs = [
|
||||
"out"
|
||||
"dev"
|
||||
];
|
||||
propagatedBuildInputs = attrs.propagatedBuildInputs or [ ] ++ [ xorg.xorgproto ];
|
||||
});
|
||||
|
||||
libXtst = super.libXtst.overrideAttrs (attrs: {
|
||||
meta = attrs.meta // {
|
||||
pkgConfigModules = [ "xtst" ];
|
||||
|
||||
@@ -162,7 +162,6 @@ mirror://xorg/individual/lib/libICE-1.1.2.tar.xz
|
||||
mirror://xorg/individual/lib/libSM-1.2.6.tar.xz
|
||||
mirror://xorg/individual/lib/libWindowsWM-1.0.1.tar.bz2
|
||||
mirror://xorg/individual/lib/libX11-1.8.12.tar.xz
|
||||
mirror://xorg/individual/lib/libXau-1.0.12.tar.xz
|
||||
mirror://xorg/individual/lib/libXaw-1.0.16.tar.xz
|
||||
mirror://xorg/individual/lib/libxcb-1.17.0.tar.xz
|
||||
mirror://xorg/individual/lib/libXcomposite-0.4.6.tar.xz
|
||||
|
||||
Reference in New Issue
Block a user