2022-10-30 03:19:12 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, wxGTK32
|
|
|
|
, chmlib
|
|
|
|
}:
|
2004-04-06 17:47:34 +00:00
|
|
|
|
2019-09-11 21:18:11 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xchm";
|
2024-10-22 19:24:00 +00:00
|
|
|
version = "1.37";
|
2019-09-11 21:18:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rzvncj";
|
|
|
|
repo = "xCHM";
|
|
|
|
rev = version;
|
2024-10-22 19:24:00 +00:00
|
|
|
sha256 = "sha256-UMn8ds4nheuYSu0PesxdGoyxyn5AcKq9WByeRUxxx3k=";
|
2004-04-06 17:47:34 +00:00
|
|
|
};
|
2006-10-12 10:53:16 +00:00
|
|
|
|
2022-10-30 03:19:12 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
];
|
2019-09-11 21:18:11 +00:00
|
|
|
|
2022-10-30 03:19:12 +00:00
|
|
|
buildInputs = [
|
|
|
|
wxGTK32
|
|
|
|
chmlib
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [ "--with-wx-prefix=${wxGTK32}" ];
|
2019-09-11 21:18:11 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
2022-10-30 03:19:12 +00:00
|
|
|
export LDFLAGS="$LDFLAGS $(${wxGTK32}/bin/wx-config --libs | sed -e s@-pthread@@) -lwx_gtk3u_aui-3.2"
|
2009-05-10 06:24:44 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2006-10-12 10:53:16 +00:00
|
|
|
description = "Viewer for Microsoft HTML Help files";
|
2019-09-11 21:18:11 +00:00
|
|
|
homepage = "https://github.com/rzvncj/xCHM";
|
2018-09-01 12:31:25 +00:00
|
|
|
license = licenses.gpl2;
|
2019-09-11 21:18:11 +00:00
|
|
|
maintainers = with maintainers; [ sikmir ];
|
2018-09-01 12:31:25 +00:00
|
|
|
platforms = platforms.linux;
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "xchm";
|
2006-10-12 10:53:16 +00:00
|
|
|
};
|
2004-04-06 17:47:34 +00:00
|
|
|
}
|