8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
15 lines
424 B
Nix
15 lines
424 B
Nix
{ 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"
|
|
''
|