2008-03-20 09:51:05 +00:00
|
|
|
args: with args;
|
|
|
|
|
2009-08-05 10:25:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.9.5";
|
2008-03-20 09:51:05 +00:00
|
|
|
name="xneur";
|
|
|
|
src = fetchurl {
|
2009-08-05 10:25:17 +00:00
|
|
|
url = "http://dists.xneur.ru/release-${version}/tgz/${name}-${version}.tar.bz2";
|
|
|
|
sha256 = "06rl7blpyhm61p5hyip55z8gdra6z89d8h4g4mbn4cbs8hd8hq8w";
|
2008-03-20 09:51:05 +00:00
|
|
|
};
|
|
|
|
|
2008-11-03 19:16:21 +00:00
|
|
|
buildInputs = [libX11 pkgconfig pcre GStreamer glib libxml2 aspell
|
2009-08-05 10:25:17 +00:00
|
|
|
libXpm imlib2 xosd libXt libXext libXi libnotify gtk pango
|
|
|
|
cairo];
|
2008-03-20 09:51:05 +00:00
|
|
|
|
2009-01-11 10:19:11 +00:00
|
|
|
inherit aspell imlib2 xosd;
|
2008-11-03 19:16:21 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -e 's/-Werror//' -i configure
|
|
|
|
sed -e 's/for aspell_dir in/for aspell_dir in $aspell /' -i configure
|
2009-01-11 10:19:11 +00:00
|
|
|
sed -e 's/for imlib2_dir in/for imlib2_dir in $imlib2 /' -i configure
|
|
|
|
sed -e 's/for xosd_dir in/for xosd_dir in $xosd /' -i configure
|
2009-08-05 10:25:17 +00:00
|
|
|
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${gtk}/include/gtk-2.0"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${gtk}/lib/gtk-2.0/include"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${cairo}/include/cairo"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${pango}/include/pango-1.0"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${atk}/include/atk-1.0"
|
|
|
|
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lnotify"
|
2008-11-03 19:16:21 +00:00
|
|
|
'';
|
2008-03-20 09:51:05 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "xneur is the keyboard layout switcher.";
|
2009-08-05 10:25:17 +00:00
|
|
|
homepage = http://xneur.ru;
|
|
|
|
license = "GPL2+";
|
2008-03-20 09:51:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|