about summary refs log tree commit diff
path: root/pkgs/tools/X11/xkbvalidate/default.nix
blob: b39e697f774144af5326ac732b461ca1087a0de0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ 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 ];
    mainProgram = "xkbvalidate";
  };
} ''
  mkdir -p "$out/bin"
  $CC -std=c11 -Wall -pedantic -lxkbcommon ${./xkbvalidate.c} \
    -o "$out/bin/xkbvalidate"
''