Skip to content

Instantly share code, notes, and snippets.

@samueldr
Created November 17, 2020 21:39
Show Gist options
  • Save samueldr/e34833c85ba1af86a1435a36c1982f12 to your computer and use it in GitHub Desktop.
Save samueldr/e34833c85ba1af86a1435a36c1982f12 to your computer and use it in GitHub Desktop.
(import <nixpkgs> {}).callPackage (
{ stdenv
, libxkbcommon
, meson
, ninja
, pkgconfig
, yacc
, libunistring
, libidn2
}:
libxkbcommon.overrideAttrs({...}: {
nativeBuildInputs = [ meson ninja pkgconfig yacc /*doxygen*/ ];
buildInputs = [ /*xkeyboard_config libxcb*/ ];
mesonFlags = [
"-Denable-wayland=false"
"-Denable-x11=false"
"-Denable-docs=false"
];
outputs = [ "out" "dev" ];
# Ensures we don't get any stray dependencies.
allowedRequisites = [
"out"
"dev"
stdenv.cc.libc_lib
libunistring
libidn2.out
];
})
) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment