mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +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"
|
|
''
|