xchm: 1.23 -> 1.30
This commit is contained in:
parent
2e47cb88ea
commit
d526e331f8
@ -1,22 +1,30 @@
|
|||||||
{stdenv, fetchurl, wxGTK, chmlib}:
|
{ stdenv, fetchFromGitHub, autoreconfHook, wxGTK30, chmlib }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
name = "xchm-1.23";
|
pname = "xchm";
|
||||||
src = fetchurl {
|
version = "1.30";
|
||||||
url = mirror://sourceforge/xchm/xchm-1.23.tar.gz;
|
|
||||||
sha256 = "0qn0fyxcrn30ndq2asx31k0qkx3grbm16fb1y580wd2gjmh5r3wg";
|
src = fetchFromGitHub {
|
||||||
|
owner = "rzvncj";
|
||||||
|
repo = "xCHM";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1sjvh06m8jbb28k6y3knas3nkh1dfvff4mlwjs33x12ilhddhr8v";
|
||||||
};
|
};
|
||||||
buildInputs = [wxGTK chmlib];
|
|
||||||
|
|
||||||
postConfigure = ''
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
export NIX_LDFLAGS="$NIX_LDFLAGS $(${wxGTK}/lib/wx/config/* --libs | sed -e s@-pthread@@)"
|
buildInputs = [ wxGTK30 chmlib ];
|
||||||
echo $NIX_LDFLAGS
|
|
||||||
|
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; {
|
meta = with stdenv.lib; {
|
||||||
description = "A viewer for Microsoft HTML Help files";
|
description = "A viewer for Microsoft HTML Help files";
|
||||||
homepage = http://xchm.sourceforge.net;
|
homepage = "https://github.com/rzvncj/xCHM";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
|
maintainers = with maintainers; [ sikmir ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user