Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchurl,
5 fetchpatch,
6 pkg-config,
7 gnome,
8 gtk3,
9 libxml2,
10 intltool,
11 itstool,
12 gdb,
13 boost,
14 sqlite,
15 libgtop,
16 glibmm,
17 gtkmm3,
18 vte,
19 gtksourceview,
20 gsettings-desktop-schemas,
21 gtksourceviewmm,
22 wrapGAppsHook3,
23}:
24
25stdenv.mkDerivation rec {
26 pname = "nemiver";
27 version = "0.9.6";
28
29 src = fetchurl {
30 url = "mirror://gnome/sources/nemiver/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
31 sha256 = "85ab8cf6c4f83262f441cb0952a6147d075c3c53d0687389a3555e946b694ef2";
32 };
33
34 nativeBuildInputs = [
35 libxml2
36 intltool
37 itstool
38 pkg-config
39 wrapGAppsHook3
40 ];
41
42 buildInputs = [
43 gtk3
44 gdb
45 boost
46 sqlite
47 libgtop
48 glibmm
49 gtkmm3
50 vte
51 gtksourceview
52 gtksourceviewmm
53 gsettings-desktop-schemas
54 ];
55
56 patches = [
57 # build fixes
58 (fetchpatch {
59 url = "https://gitlab.gnome.org/Archive/nemiver/-/commit/e0e42221ceb77d88be64fac1c09792dc5c9e2f43.patch";
60 sha256 = "1g0ixll6yqfj6ysf50p0c7nmh3lgmb6ds15703q7ibnw7dyidvj8";
61 })
62 (fetchpatch {
63 url = "https://gitlab.gnome.org/Archive/nemiver/-/commit/7005393a8c4d914eac9705e7f47818d0f4de3578.patch";
64 sha256 = "1mxb1sdqdj7dm204gja8cdygx8579bjriqqbb7cna9rj0m9c8pjg";
65 })
66 (fetchpatch {
67 url = "https://gitlab.gnome.org/Archive/nemiver/-/commit/262cf9657f9c2727a816972b348692adcc666008.patch";
68 sha256 = "03jv6z54b8nzvplplapk4aj206zl1gvnv6iz0mad19g6yvfbw7a7";
69 })
70 ];
71
72 configureFlags = [
73 "--enable-gsettings"
74 ];
75
76 passthru = {
77 updateScript = gnome.updateScript {
78 packageName = "nemiver";
79 versionPolicy = "none";
80 };
81 };
82
83 meta = with lib; {
84 homepage = "https://gitlab.gnome.org/Archive/nemiver";
85 description = "Easy to use standalone C/C++ debugger";
86 mainProgram = "nemiver";
87 license = licenses.gpl2;
88 platforms = platforms.linux;
89 maintainers = [ maintainers.juliendehos ];
90 };
91}