summary refs log blame commit diff
path: root/pkgs/applications/misc/xchm/default.nix
blob: 6a5e62f54e1e5edfaaf6a4d062c7332a2588a839 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                             
 








                                                                    
    
 






                                                                                                         

     
                           
                                                           
                                                
                            
                                               
                                
    
 
{ stdenv, fetchFromGitHub, autoreconfHook, wxGTK30, chmlib }:

stdenv.mkDerivation rec {
  pname = "xchm";
  version = "1.30";

  src = fetchFromGitHub {
    owner = "rzvncj";
    repo = "xCHM";
    rev = version;
    sha256 = "1sjvh06m8jbb28k6y3knas3nkh1dfvff4mlwjs33x12ilhddhr8v";
  };

  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 stdenv.lib; {
    description = "A viewer for Microsoft HTML Help files";
    homepage = "https://github.com/rzvncj/xCHM";
    license = licenses.gpl2;
    maintainers = with maintainers; [ sikmir ];
    platforms = platforms.linux;
  };
}