diff --git a/pkgs/by-name/li/libdmx/package.nix b/pkgs/by-name/li/libdmx/package.nix new file mode 100644 index 000000000000..e0fe0d238dc1 --- /dev/null +++ b/pkgs/by-name/li/libdmx/package.nix @@ -0,0 +1,54 @@ +{ + lib, + stdenv, + fetchurl, + pkg-config, + xorgproto, + libx11, + libxext, + testers, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "libdmx"; + version = "1.1.5"; + + src = fetchurl { + url = "mirror://xorg/individual/lib/libdmx-${finalAttrs.version}.tar.xz"; + hash = "sha256-NaTiaosLK0/jZEHcpGNkXD+lLSgqw1IFAaOOqULL908="; + }; + + strictDeps = true; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ + xorgproto + libx11 + libxext + ]; + + configureFlags = lib.optional ( + stdenv.hostPlatform != stdenv.buildPlatform + ) "--enable-malloc0returnsnull"; + + passthru = { + # updateScript = # libdmx it deprecated and thus needs no updatescript + tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; + }; + + meta = { + description = "Xlib-based library for the DMX (Distributed Multihead X) extension"; + longDescription = '' + This library allows X11 clients to use the Distributed Multihead X (DMX) Extension, + as previously implemented in the Xdmx server. + X.Org removed support for the Xdmx server from the xorg-server releases in the version 21 + release in 2021. This library is thus now considered deprecated and the version 1.1.5 release + is the last release X.Org plans to make of libdmx. + ''; + homepage = "https://gitlab.freedesktop.org/xorg/lib/libdmx"; + license = lib.licenses.mit; + maintainers = [ ]; + pkgConfigModules = [ "dmx" ]; + platforms = lib.platforms.unix; + }; +}) diff --git a/pkgs/servers/x11/xorg/default.nix b/pkgs/servers/x11/xorg/default.nix index f19a2c418bd7..6436f2bf1ddb 100644 --- a/pkgs/servers/x11/xorg/default.nix +++ b/pkgs/servers/x11/xorg/default.nix @@ -8,6 +8,7 @@ ico, imake, libapplewm, + libdmx, libpciaccess, libpthread-stubs, libx11, @@ -39,6 +40,7 @@ self: with self; { gccmakedep ico imake + libdmx libpciaccess libxcb libxcvt @@ -2888,44 +2890,6 @@ self: with self; { }) ) { }; - # THIS IS A GENERATED FILE. DO NOT EDIT! - libdmx = callPackage ( - { - stdenv, - pkg-config, - fetchurl, - xorgproto, - libX11, - libXext, - testers, - }: - stdenv.mkDerivation (finalAttrs: { - pname = "libdmx"; - version = "1.1.5"; - builder = ./builder.sh; - src = fetchurl { - url = "mirror://xorg/individual/lib/libdmx-1.1.5.tar.xz"; - sha256 = "0kzprd1ak3m3042m5hra50nsagswciis9p21ckilyaqbidmf591m"; - }; - hardeningDisable = [ - "bindnow" - "relro" - ]; - strictDeps = true; - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ - xorgproto - libX11 - libXext - ]; - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; - meta = { - pkgConfigModules = [ "dmx" ]; - platforms = lib.platforms.unix; - }; - }) - ) { }; - # THIS IS A GENERATED FILE. DO NOT EDIT! libfontenc = callPackage ( { diff --git a/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl b/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl index 0ee00e602e6d..c9be9d636860 100755 --- a/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl +++ b/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl @@ -36,6 +36,7 @@ $pcMap{"gl"} = "libGL"; $pcMap{"GL"} = "libGL"; $pcMap{"gbm"} = "libgbm"; $pcMap{"hwdata"} = "hwdata"; +$pcMap{"dmx"} = "libdmx"; $pcMap{"fontutil"} = "fontutil"; $pcMap{"pciaccess"} = "libpciaccess"; $pcMap{"pthread-stubs"} = "libpthreadstubs"; @@ -293,6 +294,7 @@ print OUT <