[Nix-dev] [PATCH] t/lineakd
Marc Weber
marco-oweber at gmx.de
Fri Aug 20 02:34:34 CEST 2010
adding lineakd - I'm interested in xsendkeys
Signed-off-by: Marc Weber <marco-oweber at gmx.de>
---
pkgs/tools/misc/lineakd/default.nix | 28 ++++++++++++++++++
pkgs/tools/misc/lineakd/gentoo-gcc43.patch | 42 ++++++++++++++++++++++++++++
pkgs/top-level/all-packages.nix | 2 +
3 files changed, 72 insertions(+), 0 deletions(-)
create mode 100644 pkgs/tools/misc/lineakd/default.nix
create mode 100644 pkgs/tools/misc/lineakd/gentoo-gcc43.patch
diff --git a/pkgs/tools/misc/lineakd/default.nix b/pkgs/tools/misc/lineakd/default.nix
new file mode 100644
index 0000000..c93ee76
--- /dev/null
+++ b/pkgs/tools/misc/lineakd/default.nix
@@ -0,0 +1,28 @@
+{stdenv, fetchurl, xorg, libtool, perl}:
+
+stdenv.mkDerivation {
+ name = "lineakd";
+
+ src = fetchurl {
+ url = mirror://sourceforge/lineak/lineakd/lineakd-0.9/lineakd-0.9.tar.gz;
+ sha256 = "02q146z0iivfj0h12w1nnl8fbxff6hdikqfcv9md2cadvzw39z9r";
+ };
+
+ patches = [ ./gentoo-gcc43.patch ];
+
+ preConfigure = ''
+ find . -type f | xargs sed -i 's@/usr/bin/file at file@g'
+ '';
+
+ buildInputs = with xorg; [libX11 libXext libXt libXtst libXi libtool perl];
+
+ enableParallelBuilding = true;
+
+ meta = {
+ description = "Linux support for Easy Access and Internet keyboards - providing xsendkeys and others";
+ homepage = "Linux support for Easy Access and Internet keyboards";
+ license = "GPLv2";
+ maintainers = [stdenv.lib.maintainers.marcweber];
+ platforms = stdenv.lib.platforms.linux;
+ };
+}
diff --git a/pkgs/tools/misc/lineakd/gentoo-gcc43.patch b/pkgs/tools/misc/lineakd/gentoo-gcc43.patch
new file mode 100644
index 0000000..a8c650d
--- /dev/null
+++ b/pkgs/tools/misc/lineakd/gentoo-gcc43.patch
@@ -0,0 +1,42 @@
+--- lineakd-0.9.orig/lineak/xmgr.cpp
++++ lineakd-0.9/lineak/xmgr.cpp
+@@ -21,6 +21,8 @@
+ #include <lineak/lbutton.h>
+
+ extern "C" {
++ #include <stdlib.h>
++ #include <string.h>
+ #include <signal.h>
+ #include <X11/Xlib.h>
+ #include <X11/keysym.h>
+--- lineakd-0.9.orig/lineak/defloader.h
++++ lineakd-0.9/lineak/defloader.h
+@@ -23,6 +23,7 @@
+ # endif
+
+ # include <lineak/loader.h>
++# include <cstdlib>
+ # include <map>
+
+ class LDef;
+--- lineakd-0.9.orig/lineak/pluginmanager.cpp
++++ lineakd-0.9/lineak/pluginmanager.cpp
+@@ -34,6 +34,7 @@
+ #include <unistd.h>
+ #include <dirent.h>
+ #include <dlfcn.h>
++#include <string.h>
+ }
+
+ using namespace lineak_core_functions;
+--- lineakd-0.9.orig/lineak/cdromctrl.cpp
++++ lineakd-0.9/lineak/cdromctrl.cpp
+@@ -51,6 +51,7 @@
+
+ #include <stdio.h>
+ #include <errno.h>
++#include <string.h>
+ #include <unistd.h>
+
+ }
+
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 2471c33..0cb3b83 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -768,6 +768,8 @@ let
less = callPackage ../tools/misc/less { };
+ lineakd = callPackage ../tools/misc/lineakd { };
+
most = callPackage ../tools/misc/most { };
lftp = callPackage ../tools/networking/lftp { };
--
1.7.2.1
More information about the nix-dev
mailing list