lol

libxklavier: add darwin support

authored by

Weijia Wang and committed by
Rick van Schijndel
0f4a3ff8 4053a8da

+10 -3
+10 -3
pkgs/development/libraries/libxklavier/default.nix
··· 1 - { lib, stdenv, fetchgit, autoreconfHook, pkg-config, gtk-doc, xkeyboard_config, libxml2, xorg, docbook_xsl 1 + { lib, stdenv, fetchgit, fetchpatch, autoreconfHook, pkg-config, gtk-doc, xkeyboard_config, libxml2, xorg, docbook_xsl 2 2 , glib, isocodes, gobject-introspection 3 3 , withDoc ? (stdenv.buildPlatform == stdenv.hostPlatform) 4 4 }: ··· 13 13 sha256 = "1w1x5mrgly2ldiw3q2r6y620zgd89gk7n90ja46775lhaswxzv7a"; 14 14 }; 15 15 16 - patches = [ ./honor-XKB_CONFIG_ROOT.patch ]; 16 + patches = [ 17 + ./honor-XKB_CONFIG_ROOT.patch 18 + ] ++ lib.optionals stdenv.isDarwin [ 19 + (fetchpatch { 20 + url = "https://gitlab.freedesktop.org/archived-projects/libxklavier/-/commit/1387c21a788ec1ea203c8392ea1460fc29d83f70.patch"; 21 + sha256 = "sha256-fyWu7sVfDv/ozjhLSLCVsv+iNFawWgJqHUsQHHSkQn4="; 22 + }) 23 + ]; 17 24 18 25 outputs = [ "out" "dev" ] ++ lib.optionals withDoc [ "devdoc" ]; 19 26 ··· 38 45 description = "Library providing high-level API for X Keyboard Extension known as XKB"; 39 46 homepage = "http://freedesktop.org/wiki/Software/LibXklavier"; 40 47 license = licenses.lgpl2Plus; 41 - platforms = platforms.linux; 48 + platforms = platforms.unix; 42 49 }; 43 50 }