diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2018-11-24 10:43:33 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-11-24 10:43:33 +0100 |
commit | e41154d1abcbcd1b9a0f542e590c63a210ea4266 (patch) | |
tree | c2971a1611c8141f14fde93fe6db43f019711ea5 /pkgs/development/libraries/libxkbcommon/libxkbcommon_7.nix | |
parent | 90720d0139feaf7421344073430d2a6f5ecbb231 (diff) | |
parent | 25c562e451e0fe9d54c455f101e1ac59350b24be (diff) | |
download | nixpkgs-e41154d1abcbcd1b9a0f542e590c63a210ea4266.tar nixpkgs-e41154d1abcbcd1b9a0f542e590c63a210ea4266.tar.gz nixpkgs-e41154d1abcbcd1b9a0f542e590c63a210ea4266.tar.bz2 nixpkgs-e41154d1abcbcd1b9a0f542e590c63a210ea4266.tar.lz nixpkgs-e41154d1abcbcd1b9a0f542e590c63a210ea4266.tar.xz nixpkgs-e41154d1abcbcd1b9a0f542e590c63a210ea4266.tar.zst nixpkgs-e41154d1abcbcd1b9a0f542e590c63a210ea4266.zip |
Merge master into staging-next
Diffstat (limited to 'pkgs/development/libraries/libxkbcommon/libxkbcommon_7.nix')
-rw-r--r-- | pkgs/development/libraries/libxkbcommon/libxkbcommon_7.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libxkbcommon/libxkbcommon_7.nix b/pkgs/development/libraries/libxkbcommon/libxkbcommon_7.nix new file mode 100644 index 00000000000..e730cc6eaab --- /dev/null +++ b/pkgs/development/libraries/libxkbcommon/libxkbcommon_7.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchurl, pkgconfig, yacc, flex, xkeyboard_config, libxcb, libX11 }: + +stdenv.mkDerivation rec { + name = "libxkbcommon-0.7.2"; + + src = fetchurl { + url = "http://xkbcommon.org/download/${name}.tar.xz"; + sha256 = "1n5rv5n210kjnkyrvbh04gfwaa7zrmzy1393p8nyqfw66lkxr918"; + }; + + outputs = [ "out" "dev" ]; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ yacc flex xkeyboard_config libxcb ]; + + configureFlags = [ + "--with-xkb-config-root=${xkeyboard_config}/etc/X11/xkb" + "--with-x-locale-root=${libX11.out}/share/X11/locale" + ]; + + preBuild = stdenv.lib.optionalString stdenv.isDarwin '' + sed -i 's/,--version-script=.*$//' Makefile + ''; + + meta = with stdenv.lib; { + description = "A library to handle keyboard descriptions"; + homepage = http://xkbcommon.org; + license = licenses.mit; + maintainers = with maintainers; [ garbas ttuegel ]; + platforms = with platforms; unix; + }; +} |