mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
17 lines
457 B
Nix
17 lines
457 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 ];
|
|
mainProgram = "xkbvalidate";
|
|
};
|
|
} ''
|
|
mkdir -p "$out/bin"
|
|
$CC -std=c11 -Wall -pedantic -lxkbcommon ${./xkbvalidate.c} \
|
|
-o "$out/bin/xkbvalidate"
|
|
''
|