tuicam: init at 0.0.2 (#377825)
[NixPkgs.git] / pkgs / by-name / xn / xneur / package.nix
blob475e47776bfd10cec0723df21fb373c786addee0
2   stdenv,
3   lib,
4   fetchurl,
5   fetchpatch,
6   autoreconfHook,
7   intltool,
8   pkg-config,
9   wrapGAppsHook3,
10   enchant,
11   gdk-pixbuf,
12   glib,
13   gst_all_1,
14   libnotify,
15   pcre,
16   xorg,
17   xosd,
20 stdenv.mkDerivation {
21   pname = "xneur";
22   version = "0.20.0";
24   src = fetchurl {
25     url = "https://github.com/AndrewCrewKuznetsov/xneur-devel/raw/f66723feb272c68f7c22a8bf0dbcafa5e3a8a5ee/dists/0.20.0/xneur_0.20.0.orig.tar.gz";
26     sha256 = "1lg3qpi9pkx9f5xvfc8yf39wwc98f769yb7i2438vqn66kla1xpr";
27   };
29   nativeBuildInputs = [
30     autoreconfHook
31     intltool
32     pkg-config
33     wrapGAppsHook3
34   ];
36   buildInputs = [
37     enchant
38     gdk-pixbuf
39     glib
40     gst_all_1.gst-plugins-base
41     gst_all_1.gst-plugins-good
42     gst_all_1.gstreamer
43     libnotify
44     pcre
45     xorg.libX11
46     xorg.libXext
47     xorg.libXi
48     xorg.libXtst
49     xosd
50   ];
52   patches = [
53     (fetchpatch {
54       name = "gcc-10.patch";
55       url = "https://salsa.debian.org/debian/xneur/-/raw/da38ad9c8e1bf4e349f5ed4ad909f810fdea44c9/debian/patches/gcc-10.patch";
56       sha256 = "0pc17a4sdrnrc4z7gz28889b9ywqsm5mzm6m41h67j2f5zh9k3fy";
57     })
58     (fetchpatch {
59       name = "enchant2.patch";
60       url = "https://salsa.debian.org/debian/xneur/-/raw/695b0fea56cde4ff6cf0f3988218c5cb9d7ff5ae/debian/patches/enchant2.patch";
61       sha256 = "02a3kkfzdvs5f8dfm6j5x3jcn5j8qah9ykfymp6ffqsf4fijp65n";
62     })
63   ];
65   postPatch = ''
66     sed -e 's@for xosd_dir in@for xosd_dir in ${xosd} @' -i configure.ac
67   '';
69   meta = with lib; {
70     description = "Utility for switching between keyboard layouts";
71     mainProgram = "xneur";
72     homepage = "https://xneur.ru";
73     license = licenses.gpl2Plus;
74     maintainers = [ maintainers.raskin ];
75     platforms = platforms.linux;
76   };