xmodmap: refactor and migrate to pkgs/by-name from xorg namespace
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
libx11,
|
||||
xorgproto,
|
||||
writeScript,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xmodmap";
|
||||
version = "1.0.11";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/xmodmap-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-mi+BaPewvDgoKIR0A5Astr8XXhdlizYYnqyH7dqHfoE=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
libx11
|
||||
xorgproto
|
||||
];
|
||||
|
||||
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 = "Utility for modifying keymaps and pointer button mappings in X";
|
||||
longDescription = ''
|
||||
The xmodmap program is used to edit and display the keyboard modifier map and keymap table
|
||||
that are used by client applications to convert event keycodes into keysyms. It is usually run
|
||||
from the user's session startup script to configure the keyboard according to personal tastes.
|
||||
'';
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/app/xmodmap";
|
||||
license = with lib.licenses; [
|
||||
mit
|
||||
mitOpenGroup
|
||||
];
|
||||
mainProgram = "xmodmap";
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -28,6 +28,7 @@
|
||||
xlsatoms,
|
||||
xlsclients,
|
||||
xlsfonts,
|
||||
xmodmap,
|
||||
xorg-cf-files,
|
||||
xorg-docs,
|
||||
xorgproto,
|
||||
@@ -55,6 +56,7 @@ self: with self; {
|
||||
xlsatoms
|
||||
xlsclients
|
||||
xlsfonts
|
||||
xmodmap
|
||||
xorgproto
|
||||
xtrans
|
||||
;
|
||||
@@ -6970,42 +6972,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xmodmap = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
libX11,
|
||||
xorgproto,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xmodmap";
|
||||
version = "1.0.11";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/xmodmap-1.0.11.tar.xz";
|
||||
sha256 = "10byhzdfv1xckqc3d2v52xg1ggxn5j806x4450l3ig5hyxl82bws";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
libX11
|
||||
xorgproto
|
||||
];
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
meta = {
|
||||
pkgConfigModules = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xmore = callPackage (
|
||||
{
|
||||
|
||||
@@ -313,6 +313,7 @@ print OUT <<EOF;
|
||||
xlsatoms,
|
||||
xlsclients,
|
||||
xlsfonts,
|
||||
xmodmap,
|
||||
xorg-cf-files,
|
||||
xorg-docs,
|
||||
xorgproto,
|
||||
@@ -340,6 +341,7 @@ self: with self; {
|
||||
xlsatoms
|
||||
xlsclients
|
||||
xlsfonts
|
||||
xmodmap
|
||||
xorgproto
|
||||
xtrans
|
||||
;
|
||||
|
||||
@@ -1193,7 +1193,6 @@ self: super:
|
||||
xload = addMainProgram super.xload { };
|
||||
xmag = addMainProgram super.xmag { };
|
||||
xmessage = addMainProgram super.xmessage { };
|
||||
xmodmap = addMainProgram super.xmodmap { };
|
||||
xmore = addMainProgram super.xmore { };
|
||||
|
||||
xpr = addMainProgram super.xpr { };
|
||||
|
||||
@@ -47,7 +47,6 @@ mirror://xorg/individual/app/xkill-1.0.6.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/xmessage-1.0.7.tar.xz
|
||||
mirror://xorg/individual/app/xmodmap-1.0.11.tar.xz
|
||||
mirror://xorg/individual/app/xmore-1.0.4.tar.xz
|
||||
mirror://xorg/individual/app/xpr-1.2.0.tar.xz
|
||||
mirror://xorg/individual/app/xprop-1.2.8.tar.xz
|
||||
|
||||
Reference in New Issue
Block a user