diff --git a/lib/licenses.nix b/lib/licenses.nix index dd0123cd9f32..5ef70d24c12f 100644 --- a/lib/licenses.nix +++ b/lib/licenses.nix @@ -718,6 +718,11 @@ lib.mapAttrs mkLicense ( spdxId = "HPND-sell-variant"; }; + hpndDec = { + fullName = "Historical Permission Notice and Disclaimer - DEC variant"; + spdxId = "HPND-DEC"; + }; + hpndDoc = { fullName = "Historical Permission Notice and Disclaimer - documentation variant"; spdxId = "HPND-doc"; diff --git a/pkgs/by-name/xk/xkbutils/package.nix b/pkgs/by-name/xk/xkbutils/package.nix new file mode 100644 index 000000000000..b482caf4b204 --- /dev/null +++ b/pkgs/by-name/xk/xkbutils/package.nix @@ -0,0 +1,60 @@ +{ + lib, + stdenv, + fetchurl, + pkg-config, + xorgproto, + libx11, + libxaw, + libxt, + writeScript, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "xkbutils"; + version = "1.0.6"; + + src = fetchurl { + url = "mirror://xorg/individual/app/xkbutils-${finalAttrs.version}.tar.xz"; + hash = "sha256-MaK77h4JzLoB3pKJe49UC1Rd6BLzGNMd4HvTpade4l4="; + }; + + strictDeps = true; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ + xorgproto + libx11 + libxaw + libxt + ]; + + 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 = "Collection of small XKB utilities"; + longDescription = '' + xkbutils is a collection of small utilities using the X Keyboard extenison: + - xkbbell: generate X Keyboard Extension bell events + - xkbvleds: display X Keyboard Extension LED state in a window + - xkbwatch: report state changes using the X Keyboard Extension + ''; + homepage = "https://gitlab.freedesktop.org/xorg/app/xkbutils"; + license = with lib.licenses; [ + hpnd + hpndDec + mit + ]; + maintainers = [ ]; + platforms = lib.platforms.unix; + }; +}) diff --git a/pkgs/servers/x11/xorg/default.nix b/pkgs/servers/x11/xorg/default.nix index 2e6881a79d8e..cb98edfc0200 100644 --- a/pkgs/servers/x11/xorg/default.nix +++ b/pkgs/servers/x11/xorg/default.nix @@ -68,6 +68,7 @@ xgamma, xgc, xhost, + xkbutils, xkeyboard-config, xlsatoms, xlsclients, @@ -114,6 +115,7 @@ self: with self; { xgamma xgc xhost + xkbutils xlsatoms xlsclients xlsfonts @@ -5118,46 +5120,6 @@ self: with self; { }) ) { }; - # THIS IS A GENERATED FILE. DO NOT EDIT! - xkbutils = callPackage ( - { - stdenv, - pkg-config, - fetchurl, - xorgproto, - libX11, - libXaw, - libXt, - testers, - }: - stdenv.mkDerivation (finalAttrs: { - pname = "xkbutils"; - version = "1.0.6"; - builder = ./builder.sh; - src = fetchurl { - url = "mirror://xorg/individual/app/xkbutils-1.0.6.tar.xz"; - sha256 = "0pp2bsksblvvw0fx667k2bl5sm0baj7pp2cjvq0vmk093vpbp8ii"; - }; - hardeningDisable = [ - "bindnow" - "relro" - ]; - strictDeps = true; - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ - xorgproto - libX11 - libXaw - libXt - ]; - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; - meta = { - pkgConfigModules = [ ]; - platforms = lib.platforms.unix; - }; - }) - ) { }; - # THIS IS A GENERATED FILE. DO NOT EDIT! xkill = callPackage ( { diff --git a/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl b/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl index 4333d158748d..e045903ea3f0 100755 --- a/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl +++ b/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl @@ -384,6 +384,7 @@ print OUT <