From ac1a5ac2dbe615df8932fe821c461de5874f13d6 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 14 Dec 2019 19:03:06 +0100 Subject: [PATCH] gtkwave: build with gtk3 gtkwave ships a gtk3 flavour on sourceforge. let's use that one. --- .../science/electronics/gtkwave/default.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/science/electronics/gtkwave/default.nix b/pkgs/applications/science/electronics/gtkwave/default.nix index 9b52e8c50519..75d69d3e499e 100644 --- a/pkgs/applications/science/electronics/gtkwave/default.nix +++ b/pkgs/applications/science/electronics/gtkwave/default.nix @@ -1,18 +1,23 @@ -{stdenv, fetchurl, gtk2, gperf, pkgconfig, bzip2, tcl, tk, judy, xz}: +{ stdenv, fetchurl, glib, gtk3, gperf, pkgconfig, bzip2, tcl, tk, wrapGAppsHook, judy, xz }: stdenv.mkDerivation rec { pname = "gtkwave"; version = "3.3.103"; src = fetchurl { - url = "mirror://sourceforge/gtkwave/${pname}-${version}.tar.gz"; - sha256 = "1xzaxqbabj4sb4n10yki5acglx3736pwl3kwlq4k7i96rzvsn9f3"; + url = "mirror://sourceforge/gtkwave/${pname}-gtk3-${version}.tar.gz"; + sha256 = "0djqfnxy772a9p44wnm5ansbih7jg76xv1hvcpkv3gblhkzg49ay"; }; - nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ gtk2 gperf bzip2 tcl tk judy xz ]; + nativeBuildInputs = [ pkgconfig wrapGAppsHook ]; + buildInputs = [ glib gtk3 gperf bzip2 tcl tk judy xz ]; - configureFlags = [ "--with-tcl=${tcl}/lib" "--with-tk=${tk}/lib" "--enable-judy" ]; + configureFlags = [ + "--with-tcl=${tcl}/lib" + "--with-tk=${tk}/lib" + "--enable-judy" + "--enable-gtk3" + ]; meta = { description = "VCD/Waveform viewer for Unix and Win32";