diff --git a/pkgs/by-name/li/libxext/package.nix b/pkgs/by-name/li/libxext/package.nix new file mode 100644 index 000000000000..1b0843881116 --- /dev/null +++ b/pkgs/by-name/li/libxext/package.nix @@ -0,0 +1,74 @@ +{ + lib, + stdenv, + fetchurl, + pkg-config, + libX11, + xorgproto, + libxau, + writeScript, + testers, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "libxext"; + version = "1.3.6"; + + outputs = [ + "out" + "dev" + "man" + "doc" + ]; + + src = fetchurl { + url = "mirror://xorg/individual/lib/libXext-${finalAttrs.version}.tar.xz"; + hash = "sha256-7bWfojmU5AX9xbQAr99YIK5hYLlPNePcPaRFehbol1M="; + }; + + strictDeps = true; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ + libX11 + xorgproto + ]; + propagatedBuildInputs = [ + xorgproto + libxau + ]; + + configureFlags = lib.optional ( + stdenv.hostPlatform != stdenv.buildPlatform + ) "--enable-malloc0returnsnull"; + + passthru = { + updateScript = writeScript "update-${finalAttrs.pname}" '' + #!/usr/bin/env nix-shell + #!nix-shell -i bash -p common-updater-scripts + version="$(list-directory-versions --pname libXext \ + --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 = "Xlib-based library for common extensions to the X11 protocol"; + homepage = "https://gitlab.freedesktop.org/xorg/lib/libxext"; + license = with lib.licenses; [ + mitOpenGroup + x11 + hpnd + hpndSellVariant + hpndDocSell + hpndDoc + mit + isc + ]; + maintainers = [ ]; + pkgConfigModules = [ "xext" ]; + platforms = lib.platforms.unix; + }; +}) diff --git a/pkgs/servers/x11/xorg/default.nix b/pkgs/servers/x11/xorg/default.nix index 7117aa1efcd5..dab99654eb6e 100644 --- a/pkgs/servers/x11/xorg/default.nix +++ b/pkgs/servers/x11/xorg/default.nix @@ -13,6 +13,7 @@ libxcb, libxcvt, libxdmcp, + libxext, lndir, luit, makedepend, @@ -53,6 +54,7 @@ self: with self; { libX11 = libx11; libXau = libxau; libXdmcp = libxdmcp; + libXext = libxext; utilmacros = util-macros; xcbproto = xcb-proto; xkeyboardconfig = xkeyboard-config; @@ -2158,42 +2160,6 @@ self: with self; { }) ) { }; - # THIS IS A GENERATED FILE. DO NOT EDIT! - libXext = callPackage ( - { - stdenv, - pkg-config, - fetchurl, - libX11, - xorgproto, - testers, - }: - stdenv.mkDerivation (finalAttrs: { - pname = "libXext"; - version = "1.3.6"; - builder = ./builder.sh; - src = fetchurl { - url = "mirror://xorg/individual/lib/libXext-1.3.6.tar.xz"; - sha256 = "0lwpx0b7lid47pff6dagp5h63bi0b3gsy05lqpyhbr4l76i9zdgd"; - }; - hardeningDisable = [ - "bindnow" - "relro" - ]; - strictDeps = true; - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ - libX11 - xorgproto - ]; - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; - meta = { - pkgConfigModules = [ "xext" ]; - platforms = lib.platforms.unix; - }; - }) - ) { }; - # THIS IS A GENERATED FILE. DO NOT EDIT! libXfixes = callPackage ( { diff --git a/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl b/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl index 583c6edfbb35..2515d4bd7e24 100755 --- a/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl +++ b/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl @@ -45,6 +45,7 @@ $pcMap{"xau"} = "libXau"; $pcMap{"xbitmaps"} = "xbitmaps"; $pcMap{"xcb-proto"} = "xcbproto"; $pcMap{"xdmcp"} = "libXdmcp"; +$pcMap{"xext"} = "libXext"; $pcMap{"xtrans"} = "xtrans"; $pcMap{"\$PIXMAN"} = "pixman"; $pcMap{"\$RENDERPROTO"} = "xorgproto"; @@ -297,6 +298,7 @@ print OUT <