about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/math/gfm/default.nix
blob: 1078be99c3a96933d9dfd3290331494951581097 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{ stdenv
, lib
, fetchurl
, fetchpatch
, pkg-config
, autoreconfHook
, gnome2
, gtk2
, glib
, libtifiles2
, libticables2
, libticalcs2
, libticonv
}:

stdenv.mkDerivation rec {
  pname = "gfm";
  version = "1.08";
  src = fetchurl {
    url = "mirror://sourceforge/tilp/${pname}-${version}.tar.bz2";
    sha256 = "0zq1a9mm54zr18dz2mqh79w1a126xwqz6dcrpjlbd1pnmg01l0q9";
  };

  patches = fetchpatch {
    name = "remove-broken-kde-support.patch";
    url = "https://aur.archlinux.org/cgit/aur.git/plain/remove-broken-kde-support.patch?h=gfm";
    sha256 = "03yc8s2avicmv04f2ygg3r3q8l7kpsc94mhp6clp584kmjpjqag5";
  };

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
  ];

  buildInputs = [
    gtk2
    gnome2.libglade
    glib
    libtifiles2
    libticables2
    libticalcs2
    libticonv
  ];

  NIX_CFLAGS_COMPILE = "-I${libticables2}/include/tilp2";

  meta = with lib; {
    changelog = "http://lpg.ticalc.org/prj_tilp/news.html";
    description = "Group File Manager (GFM) allows manipulation of single/group/tigroup files";
    homepage = "http://lpg.ticalc.org/prj_gfm/index.html";
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ siraben luc65r ];
    platforms = with platforms; linux ++ darwin;
  };
}