Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xkbmon: init at 0.1 #33345

Merged
merged 1 commit into from Jan 2, 2018
Merged

xkbmon: init at 0.1 #33345

merged 1 commit into from Jan 2, 2018

Conversation

romildo
Copy link
Contributor

@romildo romildo commented Jan 2, 2018

Motivation for this change

Add xkbmon, a command-line keyboard layout monitor for X11.

Features:

  • real-time monitoring with zero CPU usage
  • output layout in lower, upper or camel case

It can easily be used as a keyboard layout applet in the tint2 panel.

tint2

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@jtojnar
Copy link
Contributor

jtojnar commented Jan 2, 2018

@GrahamcOfBorg build xkbmon

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Success for system: x86_64-linux

gcc -Wall -O2 -std=c99 main.c -o xkbmon -lX11
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/9jpkxqcygihy82ja2w722vnniyp04b45-xkbmon-0.1
shrinking /nix/store/9jpkxqcygihy82ja2w722vnniyp04b45-xkbmon-0.1/bin/xkbmon
strip is /nix/store/wxn5gn8amxm1w0ikcx4gbs8a17wvss4j-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/9jpkxqcygihy82ja2w722vnniyp04b45-xkbmon-0.1/bin 
patching script interpreter paths in /nix/store/9jpkxqcygihy82ja2w722vnniyp04b45-xkbmon-0.1
checking for references to /tmp/nix-build-xkbmon-0.1.drv-0 in /nix/store/9jpkxqcygihy82ja2w722vnniyp04b45-xkbmon-0.1...
/nix/store/9jpkxqcygihy82ja2w722vnniyp04b45-xkbmon-0.1

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Success for system: aarch64-linux

gcc -Wall -O2 -std=c99 main.c -o xkbmon -lX11
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/0n1gjpi92k9a610qq3km4i3492d4jjws-xkbmon-0.1
shrinking /nix/store/0n1gjpi92k9a610qq3km4i3492d4jjws-xkbmon-0.1/bin/xkbmon
strip is /nix/store/c6qj0j45xizkrx58i65j75a5ysmqhgrs-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/0n1gjpi92k9a610qq3km4i3492d4jjws-xkbmon-0.1/bin
patching script interpreter paths in /nix/store/0n1gjpi92k9a610qq3km4i3492d4jjws-xkbmon-0.1
checking for references to /build in /nix/store/0n1gjpi92k9a610qq3km4i3492d4jjws-xkbmon-0.1...
/nix/store/0n1gjpi92k9a610qq3km4i3492d4jjws-xkbmon-0.1

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failure for system: x86_64-darwin

patching sources
configuring
no configure script, doing nothing
building
build flags: SHELL=/nix/store/hgsbnqhg7zr5vbjazb250ac4wnj3cfhy-bash-4.4-p12/bin/bash
gcc -Wall -O2 -std=c99 main.c -o xkbmon -lX11
/nix/store/hgsbnqhg7zr5vbjazb250ac4wnj3cfhy-bash-4.4-p12/bin/bash: gcc: command not found
make: *** [Makefile:2: xkbmon] Error 127
builder for '/nix/store/ip3ksrznd9vmvbl9nd9zs2iljxqdxhz0-xkbmon-0.1.drv' failed with exit code 2
error: build of '/nix/store/ip3ksrznd9vmvbl9nd9zs2iljxqdxhz0-xkbmon-0.1.drv' failed

homepage = https://github.com/xkbmon/xkbmon;
description = "Command-line keyboard layout monitor for X11";
license = licenses.gpl3;
platforms = platforms.unix;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be changed to linux.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@jtojnar jtojnar merged commit b33b4a7 into NixOS:master Jan 2, 2018
@romildo romildo deleted the new.xkbmon branch January 2, 2018 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants