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";
|
2021-10-14 00:43:12 +00:00
|
|
|
version = "3.3.111";
|
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";
|
|
|
|
sha256 = "0cv222qhgldfniz6zys52zhrynfsp5v0h8ia857lng7v33vw5qdl";
|
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";
|
2021-10-14 00:43:12 +00:00
|
|
|
homepage = "http://gtkwave.sourceforge.net";
|
|
|
|
license = lib.licenses.gpl2Plus;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with lib.maintainers; [ thoughtpolice jiegec ];
|
|
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|