about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/xneur/default.nix
blob: c6438a21f2c35d14926761966b5777f157a3a211 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ stdenv, fetchurl, pkgconfig, intltool, xorg, pcre, gst_all_1, glib
, xosd, libnotify, enchant, wrapGAppsHook, gdk_pixbuf }:

stdenv.mkDerivation rec {
   name = "xneur-${version}";
   version = "0.20.0";

  src = fetchurl {
    url = "https://github.com/AndrewCrewKuznetsov/xneur-devel/raw/f66723feb272c68f7c22a8bf0dbcafa5e3a8a5ee/dists/0.20.0/xneur_0.20.0.orig.tar.gz";
    sha256 = "1lg3qpi9pkx9f5xvfc8yf39wwc98f769yb7i2438vqn66kla1xpr";
  };

  nativeBuildInputs = [
    pkgconfig intltool wrapGAppsHook
  ];

  buildInputs = [
    xorg.libX11 xorg.libXtst pcre gst_all_1.gstreamer glib
    xosd xorg.libXext xorg.libXi libnotify
    enchant gdk_pixbuf
    gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good
  ];

  postPatch = ''
    sed -e 's@for xosd_dir in@for xosd_dir in ${xosd} @' -i configure
  '';

  meta = with stdenv.lib; {
    description = "Utility for switching between keyboard layouts";
    homepage = https://xneur.ru;
    license = licenses.gpl2Plus;
    maintainers = [ maintainers.raskin ];
    platforms = platforms.linux;
  };
}