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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
829 B
Nix
Raw Normal View History

2022-10-30 06:19:12 +03:00
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, wxGTK32
, chmlib
}:
2019-09-12 00:18:11 +03:00
stdenv.mkDerivation rec {
pname = "xchm";
2022-01-11 03:30:25 +03:00
version = "1.33";
2019-09-12 00:18:11 +03:00
src = fetchFromGitHub {
owner = "rzvncj";
repo = "xCHM";
rev = version;
2022-01-11 03:30:25 +03:00
sha256 = "sha256-8HQaXxZQwfBaWc22GivKri1vZEnZ23anSfriCvmLHHw=";
};
2022-10-30 06:19:12 +03:00
nativeBuildInputs = [
autoreconfHook
];
2019-09-12 00:18:11 +03:00
2022-10-30 06:19:12 +03:00
buildInputs = [
wxGTK32
chmlib
];
configureFlags = [ "--with-wx-prefix=${wxGTK32}" ];
2019-09-12 00:18:11 +03:00
preConfigure = ''
2022-10-30 06:19:12 +03:00
export LDFLAGS="$LDFLAGS $(${wxGTK32}/bin/wx-config --libs | sed -e s@-pthread@@) -lwx_gtk3u_aui-3.2"
'';
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;
};
}