xchm: migrate to wxGTK32

This commit is contained in:
Weijia Wang 2022-10-30 04:19:12 +01:00
parent 0a2b4e72f9
commit d0a03f4c68

View file

@ -1,4 +1,10 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, wxGTK30, chmlib }:
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, wxGTK32
, chmlib
}:
stdenv.mkDerivation rec {
pname = "xchm";
@ -11,13 +17,19 @@ stdenv.mkDerivation rec {
sha256 = "sha256-8HQaXxZQwfBaWc22GivKri1vZEnZ23anSfriCvmLHHw=";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ wxGTK30 chmlib ];
nativeBuildInputs = [
autoreconfHook
];
configureFlags = [ "--with-wx-prefix=${wxGTK30}" ];
buildInputs = [
wxGTK32
chmlib
];
configureFlags = [ "--with-wx-prefix=${wxGTK32}" ];
preConfigure = ''
export LDFLAGS="$LDFLAGS $(${wxGTK30}/bin/wx-config --libs | sed -e s@-pthread@@) -lwx_gtk2u_aui-3.0"
export LDFLAGS="$LDFLAGS $(${wxGTK32}/bin/wx-config --libs | sed -e s@-pthread@@) -lwx_gtk3u_aui-3.2"
'';
meta = with lib; {