2021-10-14 00:43:12 +00:00
|
|
|
{ bzip2
|
|
|
|
, fetchurl
|
|
|
|
, glib
|
|
|
|
, gperf
|
|
|
|
, gtk3
|
2022-07-14 12:49:19 +00:00
|
|
|
, gtk-mac-integration
|
2021-10-14 00:43:12 +00:00
|
|
|
, judy
|
|
|
|
, lib
|
|
|
|
, pkg-config
|
|
|
|
, stdenv
|
|
|
|
, tcl
|
|
|
|
, tk
|
|
|
|
, wrapGAppsHook
|
|
|
|
, xz
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gtkwave";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "3.3.118";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-10-14 00:43:12 +00:00
|
|
|
url = "mirror://sourceforge/gtkwave/${pname}-gtk3-${version}.tar.gz";
|
2024-01-13 08:15:51 +00:00
|
|
|
sha256 = "sha256-D0MwwCiiqz0vTUzur222kl2wEMS2/VLRECLQ5d6gSGo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
2022-07-14 12:49:19 +00:00
|
|
|
buildInputs = [ bzip2 glib gperf gtk3 judy tcl tk xz ]
|
|
|
|
++ lib.optional stdenv.isDarwin gtk-mac-integration;
|
|
|
|
|
|
|
|
# fix compilation under Darwin
|
|
|
|
# remove these patches upon next release
|
|
|
|
# https://github.com/gtkwave/gtkwave/pull/136
|
|
|
|
patches = [
|
|
|
|
./0001-Fix-detection-of-quartz-in-gdk-3.0-target.patch
|
|
|
|
./0002-Check-GDK_WINDOWING_X11-macro-when-using-GtkPlug.patch
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-tcl=${tcl}/lib"
|
|
|
|
"--with-tk=${tk}/lib"
|
|
|
|
"--enable-judy"
|
|
|
|
"--enable-gtk3"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "VCD/Waveform viewer for Unix and Win32";
|
2023-02-22 10:55:15 +00:00
|
|
|
homepage = "https://gtkwave.sourceforge.net";
|
2021-10-14 00:43:12 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2023-08-22 20:05:09 +00:00
|
|
|
maintainers = with lib.maintainers; [ thoughtpolice jiegec jleightcap ];
|
2022-07-14 12:49:19 +00:00
|
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|