2020-04-24 23:36:52 +00:00
|
|
|
{ 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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "xkbvalidate";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
} ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
$CC -std=c11 -Wall -pedantic -lxkbcommon ${./xkbvalidate.c} \
|
|
|
|
-o "$out/bin/xkbvalidate"
|
|
|
|
''
|