diff --git a/pkgs/by-name/xh/xhost/package.nix b/pkgs/by-name/xh/xhost/package.nix new file mode 100644 index 000000000000..ed39814e850d --- /dev/null +++ b/pkgs/by-name/xh/xhost/package.nix @@ -0,0 +1,62 @@ +{ + lib, + stdenv, + fetchurl, + pkg-config, + gettext, + xorgproto, + libx11, + libxau, + libxmu, + writeScript, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "xhost"; + version = "1.0.10"; + + src = fetchurl { + url = "mirror://xorg/individual/app/xhost-${finalAttrs.version}.tar.xz"; + hash = "sha256-qK/XAFlHnHEpSLiV5Bw1pKi/zt47otWkuFXIi7tyW+E="; + }; + + strictDeps = true; + + nativeBuildInputs = [ + pkg-config + gettext + ]; + + buildInputs = [ + xorgproto + libx11 + libxau + libxmu + ]; + + 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/app/ \ + | sort -V | tail -n1)" + update-source-version ${finalAttrs.pname} "$version" + ''; + }; + + meta = { + description = "X server access control program"; + longDescription = '' + xhost is used to manage the list of host names or user names allowed to make connections to + the X server. + ''; + homepage = "https://gitlab.freedesktop.org/xorg/app/xhost"; + license = with lib.licenses; [ + mit + icu + ]; + mainProgram = "xhost"; + maintainers = [ ]; + platforms = lib.platforms.unix; + }; +}) diff --git a/pkgs/servers/x11/xorg/default.nix b/pkgs/servers/x11/xorg/default.nix index 6ecd842152f6..2e6881a79d8e 100644 --- a/pkgs/servers/x11/xorg/default.nix +++ b/pkgs/servers/x11/xorg/default.nix @@ -67,6 +67,7 @@ xfsinfo, xgamma, xgc, + xhost, xkeyboard-config, xlsatoms, xlsclients, @@ -112,6 +113,7 @@ self: with self; { xfsinfo xgamma xgc + xhost xlsatoms xlsclients xlsfonts @@ -4924,50 +4926,6 @@ self: with self; { }) ) { }; - # THIS IS A GENERATED FILE. DO NOT EDIT! - xhost = callPackage ( - { - stdenv, - pkg-config, - fetchurl, - libX11, - libXau, - libXmu, - xorgproto, - gettext, - testers, - }: - stdenv.mkDerivation (finalAttrs: { - pname = "xhost"; - version = "1.0.10"; - builder = ./builder.sh; - src = fetchurl { - url = "mirror://xorg/individual/app/xhost-1.0.10.tar.xz"; - sha256 = "1qavfaxqpj2mp2jdb8ivvv7bza546lff95dq90lp3727b40dgbx8"; - }; - hardeningDisable = [ - "bindnow" - "relro" - ]; - strictDeps = true; - nativeBuildInputs = [ - pkg-config - gettext - ]; - buildInputs = [ - libX11 - libXau - libXmu - xorgproto - ]; - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; - meta = { - pkgConfigModules = [ ]; - platforms = lib.platforms.unix; - }; - }) - ) { }; - # THIS IS A GENERATED FILE. DO NOT EDIT! xinit = callPackage ( { diff --git a/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl b/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl index bf87eaca5233..4333d158748d 100755 --- a/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl +++ b/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl @@ -383,6 +383,7 @@ print OUT <