nixpkgs/pkgs/by-name/xc/xchm/package.nix

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

44 lines
853 B
Nix
Raw Normal View History

2022-10-30 03:19:12 +00:00
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, wxGTK32
, chmlib
}:
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=";
};
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"
'';
meta = with lib; {
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";
};
}