2023-01-18 12:06:00 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
2023-01-18 12:08:33 +01:00
|
|
|
, autoreconfHook
|
2023-01-18 12:06:00 +01:00
|
|
|
, intltool
|
|
|
|
, pkg-config
|
2024-04-26 22:24:03 +02:00
|
|
|
, wrapGAppsHook3
|
2023-01-18 12:06:00 +01:00
|
|
|
, enchant
|
|
|
|
, gdk-pixbuf
|
|
|
|
, glib
|
|
|
|
, gst_all_1
|
|
|
|
, libnotify
|
|
|
|
, pcre
|
|
|
|
, xorg
|
|
|
|
, xosd
|
|
|
|
}:
|
2009-09-17 05:42:01 +02:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2023-01-18 12:06:00 +01:00
|
|
|
pname = "xneur";
|
|
|
|
version = "0.20.0";
|
2018-07-16 01:33:57 +02:00
|
|
|
|
2008-03-20 10:51:05 +01:00
|
|
|
src = fetchurl {
|
2018-07-16 01:33:57 +02:00
|
|
|
url = "https://github.com/AndrewCrewKuznetsov/xneur-devel/raw/f66723feb272c68f7c22a8bf0dbcafa5e3a8a5ee/dists/0.20.0/xneur_0.20.0.orig.tar.gz";
|
|
|
|
sha256 = "1lg3qpi9pkx9f5xvfc8yf39wwc98f769yb7i2438vqn66kla1xpr";
|
2008-03-20 10:51:05 +01:00
|
|
|
};
|
|
|
|
|
2018-07-16 01:33:57 +02:00
|
|
|
nativeBuildInputs = [
|
2023-01-18 12:08:33 +01:00
|
|
|
autoreconfHook
|
2023-01-18 12:06:00 +01:00
|
|
|
intltool
|
|
|
|
pkg-config
|
2024-04-26 22:24:03 +02:00
|
|
|
wrapGAppsHook3
|
2018-07-16 01:33:57 +02:00
|
|
|
];
|
2008-11-03 20:16:21 +01:00
|
|
|
|
2018-07-16 01:33:57 +02:00
|
|
|
buildInputs = [
|
2023-01-18 12:06:00 +01:00
|
|
|
enchant
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gst-plugins-good
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
libnotify
|
|
|
|
pcre
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libXext
|
|
|
|
xorg.libXi
|
|
|
|
xorg.libXtst
|
|
|
|
xosd
|
2018-07-16 01:33:57 +02:00
|
|
|
];
|
2009-08-05 12:25:17 +02:00
|
|
|
|
2021-05-08 06:59:07 +02:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "gcc-10.patch";
|
|
|
|
url = "https://salsa.debian.org/debian/xneur/-/raw/da38ad9c8e1bf4e349f5ed4ad909f810fdea44c9/debian/patches/gcc-10.patch";
|
|
|
|
sha256 = "0pc17a4sdrnrc4z7gz28889b9ywqsm5mzm6m41h67j2f5zh9k3fy";
|
|
|
|
})
|
2023-01-18 12:08:33 +01:00
|
|
|
(fetchpatch {
|
|
|
|
name = "enchant2.patch";
|
|
|
|
url = "https://salsa.debian.org/debian/xneur/-/raw/695b0fea56cde4ff6cf0f3988218c5cb9d7ff5ae/debian/patches/enchant2.patch";
|
|
|
|
sha256 = "02a3kkfzdvs5f8dfm6j5x3jcn5j8qah9ykfymp6ffqsf4fijp65n";
|
|
|
|
})
|
2021-05-08 06:59:07 +02:00
|
|
|
];
|
|
|
|
|
2018-07-16 01:33:57 +02:00
|
|
|
postPatch = ''
|
2023-01-18 12:08:33 +01:00
|
|
|
sed -e 's@for xosd_dir in@for xosd_dir in ${xosd} @' -i configure.ac
|
2008-11-03 20:16:21 +01:00
|
|
|
'';
|
2008-03-20 10:51:05 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2010-07-28 20:01:17 +02:00
|
|
|
description = "Utility for switching between keyboard layouts";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "xneur";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://xneur.ru";
|
2018-07-16 01:33:57 +02:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux;
|
2008-03-20 10:51:05 +01:00
|
|
|
};
|
|
|
|
}
|