2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, wxGTK30, chmlib }:
|
2004-04-06 19:47:34 +02:00
|
|
|
|
2019-09-11 23:18:11 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xchm";
|
2019-11-30 00:56:44 +01:00
|
|
|
version = "1.31";
|
2019-09-11 23:18:11 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rzvncj";
|
|
|
|
repo = "xCHM";
|
|
|
|
rev = version;
|
2019-11-30 00:56:44 +01:00
|
|
|
sha256 = "1mzafbpc1c211byf8bnwl13by7vi8xvxlaykyrajb1bj0ynbmmgp";
|
2004-04-06 19:47:34 +02:00
|
|
|
};
|
2006-10-12 12:53:16 +02:00
|
|
|
|
2019-09-11 23:18:11 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ wxGTK30 chmlib ];
|
|
|
|
|
|
|
|
configureFlags = [ "--with-wx-prefix=${wxGTK30}" ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export LDFLAGS="$LDFLAGS $(${wxGTK30}/bin/wx-config --libs | sed -e s@-pthread@@) -lwx_gtk2u_aui-3.0"
|
2009-05-10 08:24:44 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2006-10-12 12:53:16 +02:00
|
|
|
description = "A viewer for Microsoft HTML Help files";
|
2019-09-11 23:18:11 +02:00
|
|
|
homepage = "https://github.com/rzvncj/xCHM";
|
2018-09-01 14:31:25 +02:00
|
|
|
license = licenses.gpl2;
|
2019-09-11 23:18:11 +02:00
|
|
|
maintainers = with maintainers; [ sikmir ];
|
2018-09-01 14:31:25 +02:00
|
|
|
platforms = platforms.linux;
|
2006-10-12 12:53:16 +02:00
|
|
|
};
|
2004-04-06 19:47:34 +02:00
|
|
|
}
|