2012-03-14 22:44:52 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, xorg, pcre, gstreamer, glib, libxml2
|
2016-09-11 21:24:51 +00:00
|
|
|
, aspell, cairo, imlib2, xosd, libnotify, gtk2, pango, atk, enchant,
|
2011-05-24 15:00:56 +00:00
|
|
|
gdk_pixbuf}:
|
2008-03-20 09:51:05 +00:00
|
|
|
|
2009-09-17 03:42:01 +00:00
|
|
|
let s = import ./src-for-default.nix; in
|
|
|
|
|
2009-08-05 10:25:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2009-09-17 03:42:01 +00:00
|
|
|
inherit (s) version name;
|
2008-03-20 09:51:05 +00:00
|
|
|
src = fetchurl {
|
2009-09-17 03:42:01 +00:00
|
|
|
inherit(s) url;
|
|
|
|
sha256 = s.hash;
|
2008-03-20 09:51:05 +00:00
|
|
|
};
|
|
|
|
|
2010-07-28 18:01:17 +00:00
|
|
|
buildInputs =
|
2012-03-14 22:44:52 +00:00
|
|
|
[ xorg.libX11 pkgconfig pcre gstreamer glib libxml2 aspell cairo
|
2010-07-28 18:01:17 +00:00
|
|
|
xorg.libXpm imlib2 xosd xorg.libXt xorg.libXext xorg.libXi libnotify
|
2016-09-11 21:24:51 +00:00
|
|
|
gtk2 pango enchant gdk_pixbuf
|
2010-07-28 18:01:17 +00:00
|
|
|
];
|
2008-11-03 19:16:21 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -e 's/-Werror//' -i configure
|
2010-10-14 12:01:03 +00:00
|
|
|
sed -e 's@for aspell_dir in@for aspell_dir in ${aspell} @' -i configure
|
|
|
|
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
|
|
|
|
2016-09-11 21:24:51 +00:00
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${gtk2.dev}/include/gtk-2.0"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${gtk2.out}/lib/gtk-2.0/include"
|
2015-10-06 18:31:39 +00:00
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${cairo.dev}/include/cairo"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${pango.dev}/include/pango-1.0"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${atk.dev}/include/atk-1.0"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${gdk_pixbuf.dev}/include/gdk-pixbuf-2.0"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${gdk_pixbuf.out}/lib/gdk-pixbuf-2.0/include"
|
2009-08-05 10:25:17 +00:00
|
|
|
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lnotify"
|
2008-11-03 19:16:21 +00:00
|
|
|
'';
|
2008-03-20 09:51:05 +00:00
|
|
|
|
|
|
|
meta = {
|
2010-07-28 18:01:17 +00:00
|
|
|
description = "Utility for switching between keyboard layouts";
|
2009-08-05 10:25:17 +00:00
|
|
|
homepage = http://xneur.ru;
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2009-09-17 03:42:01 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
2009-09-17 09:03:52 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2008-03-20 09:51:05 +00:00
|
|
|
};
|
|
|
|
}
|