nixpkgs-suyu/pkgs/applications/misc/gxneur/default.nix

27 lines
711 B
Nix
Raw Normal View History

2018-07-16 01:33:57 +02:00
{ stdenv, fetchurl, pkgconfig, gtk2, xorg, glib, xneur, libglade, GConf, pcre }:
stdenv.mkDerivation {
name = "gxneur-0.13.0";
2018-07-16 01:33:57 +02:00
src = fetchurl {
url = https://dists.xneur.ru/release-0.13.0/tgz/gxneur-0.13.0.tar.bz2;
sha256 = "f093428a479158247a7ff8424f0aec9af9f7b1d05b191cf30b7c534965a6839f";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
2018-07-16 01:33:57 +02:00
xorg.libX11 glib gtk2 xorg.libXpm xorg.libXt xorg.libXext xneur
libglade GConf pcre
];
preConfigure = ''
sed -e 's@-Werror@@' -i configure
2018-07-16 01:33:57 +02:00
sed -e 's@"xneur"@"${xneur}/bin/xneur"@' -i src/misc.c
'';
meta = {
description = "GUI for XNEUR keyboard layout switcher";
platforms = stdenv.lib.platforms.linux;
};
}