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

31 lines
807 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, autoreconfHook, wxGTK30, chmlib }:
2019-09-12 00:18:11 +03:00
stdenv.mkDerivation rec {
pname = "xchm";
2021-03-22 21:00:18 +03:00
version = "1.32";
2019-09-12 00:18:11 +03:00
src = fetchFromGitHub {
owner = "rzvncj";
repo = "xCHM";
rev = version;
2021-03-22 21:00:18 +03:00
sha256 = "sha256-Ss8kdfUAMC8v05rdt2SoO6vPyssG5v8gOzdf/v18cdg=";
};
2019-09-12 00:18:11 +03: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"
'';
meta = with lib; {
description = "A viewer for Microsoft HTML Help files";
2019-09-12 00:18:11 +03:00
homepage = "https://github.com/rzvncj/xCHM";
2018-09-01 15:31:25 +03:00
license = licenses.gpl2;
2019-09-12 00:18:11 +03:00
maintainers = with maintainers; [ sikmir ];
2018-09-01 15:31:25 +03:00
platforms = platforms.linux;
};
}