summary refs log tree commit diff
path: root/pkgs/tools/X11/xkbvalidate/default.nix
blob: 92a47aa65638b39dff0a1e0555ee9497333bf1ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ lib, runCommandCC, libxkbcommon }:

runCommandCC "xkbvalidate" {
  buildInputs = [ libxkbcommon ];
  meta = {
    description = "NixOS tool to validate X keyboard configuration";
    license = lib.licenses.mit;
    platforms = lib.platforms.unix;
    maintainers = [ lib.maintainers.aszlig ];
  };
} ''
  mkdir -p "$out/bin"
  $CC -std=c11 -Wall -pedantic -lxkbcommon ${./xkbvalidate.c} \
    -o "$out/bin/xkbvalidate"
''