diff --git a/pkgs/by-name/li/libxau/package.nix b/pkgs/by-name/li/libxau/package.nix new file mode 100644 index 000000000000..e9c67d2beb87 --- /dev/null +++ b/pkgs/by-name/li/libxau/package.nix @@ -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; + }; +}) diff --git a/pkgs/servers/x11/xorg/default.nix b/pkgs/servers/x11/xorg/default.nix index 8e1363d7c91e..43d59e70f75e 100644 --- a/pkgs/servers/x11/xorg/default.nix +++ b/pkgs/servers/x11/xorg/default.nix @@ -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 ( { diff --git a/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl b/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl index d21e0ec7b4a8..ecb8522beda5 100755 --- a/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl +++ b/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl @@ -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 <