summary refs log tree commit diff
path: root/pkgs/applications/misc/gummi/default.nix
blob: d1daec2848269a02c5970ef853fdf671e96012b6 (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
36
37
38
39
40
41
{ stdenv, pkgs, makeWrapper, pango
, glib, gnome2, gnome3, gtk2-x11, gtkspell2, poppler
, pkgconfig, intltool, autoreconfHook, wrapGAppsHook
}:

stdenv.mkDerivation rec {
  version = "0.6.6";
  pname = "gummi";

  src = pkgs.fetchFromGitHub {
    owner = "alexandervdm";
    repo = "gummi";
    rev = version;
    sha256 = "1vw8rhv8qj82l6l22kpysgm9mxilnki2kjmvxsnajbqcagr6s7cn";
  };

  nativeBuildInputs = [
    pkgconfig intltool autoreconfHook makeWrapper wrapGAppsHook
  ];
  buildInputs = [
    glib gnome2.gtksourceview pango gtk2-x11 gtkspell2 poppler
    gnome3.adwaita-icon-theme
  ];

  preConfigure = ''
    gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${pkgs.gnome2.gtksourceview}/share")
  '';

  postInstall = ''
    install -Dpm644 COPYING $out/share/licenses/$name/COPYING
  '';

  meta = {
    homepage = http://gummi.midnightcoding.org/;
    description = "Simple LaTex editor for GTK users";
    license = stdenv.lib.licenses.mit;
    maintainers = with stdenv.lib.maintainers; [ flokli ];
    platforms = with stdenv.lib.platforms; linux;
    inherit version;
  };
}