about summary refs log tree commit diff
path: root/pkgs/development/tools/nemiver/default.nix
blob: c63761f23a0b9740c0296ba92f7f0fd14d215796 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{ lib, stdenv
, fetchurl
, fetchpatch
, pkg-config
, gnome
, gtk3
, libxml2
, intltool
, itstool
, gdb
, boost
, sqlite
, libgtop
, glibmm
, gtkmm3
, vte
, gtksourceview
, gsettings-desktop-schemas
, gtksourceviewmm
, wrapGAppsHook3
}:

stdenv.mkDerivation rec {
  pname = "nemiver";
  version = "0.9.6";

  src = fetchurl {
    url = "mirror://gnome/sources/nemiver/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
    sha256 = "85ab8cf6c4f83262f441cb0952a6147d075c3c53d0687389a3555e946b694ef2";
  };

  nativeBuildInputs = [
    libxml2
    intltool
    itstool
    pkg-config
    wrapGAppsHook3
  ];

  buildInputs = [
    gtk3
    gdb
    boost
    sqlite
    libgtop
    glibmm
    gtkmm3
    vte
    gtksourceview
    gtksourceviewmm
    gsettings-desktop-schemas
  ];

  patches = [
    # build fixes
    (fetchpatch {
      url = "https://gitlab.gnome.org/Archive/nemiver/-/commit/e0e42221ceb77d88be64fac1c09792dc5c9e2f43.patch";
      sha256 = "1g0ixll6yqfj6ysf50p0c7nmh3lgmb6ds15703q7ibnw7dyidvj8";
    })
    (fetchpatch {
      url = "https://gitlab.gnome.org/Archive/nemiver/-/commit/7005393a8c4d914eac9705e7f47818d0f4de3578.patch";
      sha256 = "1mxb1sdqdj7dm204gja8cdygx8579bjriqqbb7cna9rj0m9c8pjg";
    })
    (fetchpatch {
      url = "https://gitlab.gnome.org/Archive/nemiver/-/commit/262cf9657f9c2727a816972b348692adcc666008.patch";
      sha256 = "03jv6z54b8nzvplplapk4aj206zl1gvnv6iz0mad19g6yvfbw7a7";
    })
  ];

  configureFlags = [
    "--enable-gsettings"
  ];

  passthru = {
    updateScript = gnome.updateScript {
      packageName = "nemiver";
      versionPolicy = "none";
    };
  };

  meta = with lib; {
    homepage = "https://gitlab.gnome.org/Archive/nemiver";
    description = "Easy to use standalone C/C++ debugger";
    mainProgram = "nemiver";
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = [ maintainers.juliendehos ];
  };
}