[Nix-dev] [PATCH] t/lineakd
Evgeny Egorochkin
phreedom.stdin at gmail.com
Tue Dec 21 08:27:13 CET 2010
This doesn't compile:
cd . && perl admin/am_edit Makefile.in
building configure
cd . && rm -f configure
cd . && make -f admin/Makefile.common configure
make[1]: Entering directory `/tmp/nix-build-4i5nd9j01lacalq6drjgwdzv0cjfncv4-
lineakd.drv-0/lineakd-0.9'
building configure
./admin/cvs.sh: ./admin/detect-autoconf.pl: /usr/bin/env: bad interpreter: No
such file or directory
Can't open configure: No such file or directory.
make[1]: Leaving directory `/tmp/nix-build-4i5nd9j01lacalq6drjgwdzv0cjfncv4-
lineakd.drv-0/lineakd-0.9'
building config.status
/bin/sh ./config.status --recheck
running /bin/sh ./configure --disable-static --disable-dependency-tracking --
prefix=/nix/store/39fzmfswgfn16gp3msz8kyx5mynhhyw8-lineakd --no-create --no-
recursion
/bin/sh: ./configure: No such file or directory
make: *** [config.status] Error 127
builder for `/nix/store/4i5nd9j01lacalq6drjgwdzv0cjfncv4-lineakd.drv' failed
with exit code 2
error: build of `/nix/store/4i5nd9j01lacalq6drjgwdzv0cjfncv4-lineakd.drv'
failed
On Friday 20 August 2010 03:34:34 Marc Weber wrote:
> 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 { };
--
Evgeny
More information about the nix-dev
mailing list