summary refs log tree commit diff
diff options
context:
space:
mode:
authorYury G. Kudryashov <urkud.urkud@gmail.com>2008-02-18 20:53:36 +0000
committerYury G. Kudryashov <urkud.urkud@gmail.com>2008-02-18 20:53:36 +0000
commit805424e33f03fbe07db4b733fadaae802a41a5c5 (patch)
treef91c0a8fe665abc0f040ebddc72e93d0db887384
parentf1459725b60331a90c40e1fec30adc3bfcb644eb (diff)
downloadnixpkgs-805424e33f03fbe07db4b733fadaae802a41a5c5.tar
nixpkgs-805424e33f03fbe07db4b733fadaae802a41a5c5.tar.gz
nixpkgs-805424e33f03fbe07db4b733fadaae802a41a5c5.tar.bz2
nixpkgs-805424e33f03fbe07db4b733fadaae802a41a5c5.tar.lz
nixpkgs-805424e33f03fbe07db4b733fadaae802a41a5c5.tar.xz
nixpkgs-805424e33f03fbe07db4b733fadaae802a41a5c5.tar.zst
nixpkgs-805424e33f03fbe07db4b733fadaae802a41a5c5.zip
libxklavier added
svn path=/nixpkgs/branches/stdenv-updates/; revision=10749
-rw-r--r--pkgs/development/libraries/libxklavier/3.4.nix21
-rw-r--r--pkgs/top-level/all-packages.nix6
2 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libxklavier/3.4.nix b/pkgs/development/libraries/libxklavier/3.4.nix
new file mode 100644
index 00000000000..38fa91cfeb0
--- /dev/null
+++ b/pkgs/development/libraries/libxklavier/3.4.nix
@@ -0,0 +1,21 @@
+args: with args;
+
+stdenv.mkDerivation rec {
+  name = "libxklavier-" + version;
+
+  src = fetchurl {
+    url = "mirror://sf/gswitchit/${name}.tar.gz";
+    sha256 = "07pq74ygmnr3vgfp86dbjnqsp3v67fww6d3a1vqbif9wzbk70195";
+  };
+
+# TODO: enable xmodmap support, needs xmodmap DB
+  propagatedBuildInputs = [libX11 xkeyboard_config libxml2 libICE glib libxkbfile];
+  buildInputs = [pkgconfig];
+  configureFlags = "--enable-shared --disable-static
+    --with-xkb-base=${xkeyboard_config}/etc/X11/xkb
+    --disable-xmodmap-support";
+
+  meta = {
+    homepage = http://freedesktop.org/wiki/Software/LibXklavier;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 3c75c550743..acac3d50853 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2398,6 +2398,12 @@ rec {
     inherit fetchurl stdenv;
   };
 
+  libxklavier = selectVersion ../development/libraries/libxklavier "3.4" {
+    inherit fetchurl stdenv xkeyboard_config pkgconfig libxml2;
+    inherit (xorg) libX11 libICE libxkbfile;
+    inherit (gtkLibs) glib;
+  };
+
   libxml2 = import ../development/libraries/libxml2 {
     inherit fetchurl stdenv zlib python;
     pythonSupport = false;