nixpkgs/pkgs/applications/misc/xchm/default.nix

31 lines
810 B
Nix
Raw Normal View History

2019-09-11 23:18:11 +02:00
{ stdenv, fetchFromGitHub, autoreconfHook, wxGTK30, chmlib }:
2019-09-11 23:18:11 +02:00
stdenv.mkDerivation rec {
pname = "xchm";
version = "1.30";
src = fetchFromGitHub {
owner = "rzvncj";
repo = "xCHM";
rev = version;
sha256 = "1sjvh06m8jbb28k6y3knas3nkh1dfvff4mlwjs33x12ilhddhr8v";
};
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"
'';
2018-09-01 14:31:25 +02:00
meta = with stdenv.lib; {
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;
};
}