xkbutils: refactor and move to pkgs/by-name from xorg namespace
This commit is contained in:
committed by
Alyssa Ross
parent
744120dbc7
commit
fea4046333
@@ -718,6 +718,11 @@ lib.mapAttrs mkLicense (
|
|||||||
spdxId = "HPND-sell-variant";
|
spdxId = "HPND-sell-variant";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hpndDec = {
|
||||||
|
fullName = "Historical Permission Notice and Disclaimer - DEC variant";
|
||||||
|
spdxId = "HPND-DEC";
|
||||||
|
};
|
||||||
|
|
||||||
hpndDoc = {
|
hpndDoc = {
|
||||||
fullName = "Historical Permission Notice and Disclaimer - documentation variant";
|
fullName = "Historical Permission Notice and Disclaimer - documentation variant";
|
||||||
spdxId = "HPND-doc";
|
spdxId = "HPND-doc";
|
||||||
|
|||||||
60
pkgs/by-name/xk/xkbutils/package.nix
Normal file
60
pkgs/by-name/xk/xkbutils/package.nix
Normal file
@@ -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;
|
||||||
|
};
|
||||||
|
})
|
||||||
@@ -68,6 +68,7 @@
|
|||||||
xgamma,
|
xgamma,
|
||||||
xgc,
|
xgc,
|
||||||
xhost,
|
xhost,
|
||||||
|
xkbutils,
|
||||||
xkeyboard-config,
|
xkeyboard-config,
|
||||||
xlsatoms,
|
xlsatoms,
|
||||||
xlsclients,
|
xlsclients,
|
||||||
@@ -114,6 +115,7 @@ self: with self; {
|
|||||||
xgamma
|
xgamma
|
||||||
xgc
|
xgc
|
||||||
xhost
|
xhost
|
||||||
|
xkbutils
|
||||||
xlsatoms
|
xlsatoms
|
||||||
xlsclients
|
xlsclients
|
||||||
xlsfonts
|
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!
|
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||||
xkill = callPackage (
|
xkill = callPackage (
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -384,6 +384,7 @@ print OUT <<EOF;
|
|||||||
xgamma,
|
xgamma,
|
||||||
xgc,
|
xgc,
|
||||||
xhost,
|
xhost,
|
||||||
|
xkbutils,
|
||||||
xkeyboard-config,
|
xkeyboard-config,
|
||||||
xlsatoms,
|
xlsatoms,
|
||||||
xlsclients,
|
xlsclients,
|
||||||
@@ -430,6 +431,7 @@ self: with self; {
|
|||||||
xgamma
|
xgamma
|
||||||
xgc
|
xgc
|
||||||
xhost
|
xhost
|
||||||
|
xkbutils
|
||||||
xlsatoms
|
xlsatoms
|
||||||
xlsclients
|
xlsclients
|
||||||
xlsfonts
|
xlsfonts
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ mirror://xorg/individual/app/xinput-1.6.4.tar.xz
|
|||||||
mirror://xorg/individual/app/xkbcomp-1.4.7.tar.xz
|
mirror://xorg/individual/app/xkbcomp-1.4.7.tar.xz
|
||||||
mirror://xorg/individual/app/xkbevd-1.1.6.tar.xz
|
mirror://xorg/individual/app/xkbevd-1.1.6.tar.xz
|
||||||
mirror://xorg/individual/app/xkbprint-1.0.7.tar.xz
|
mirror://xorg/individual/app/xkbprint-1.0.7.tar.xz
|
||||||
mirror://xorg/individual/app/xkbutils-1.0.6.tar.xz
|
|
||||||
mirror://xorg/individual/app/xkill-1.0.6.tar.xz
|
mirror://xorg/individual/app/xkill-1.0.6.tar.xz
|
||||||
mirror://xorg/individual/app/xload-1.2.0.tar.xz
|
mirror://xorg/individual/app/xload-1.2.0.tar.xz
|
||||||
mirror://xorg/individual/app/xmag-1.0.8.tar.xz
|
mirror://xorg/individual/app/xmag-1.0.8.tar.xz
|
||||||
|
|||||||
Reference in New Issue
Block a user