git.iko.soy/typeable/nixpkgs
on master help sign in
xchm: 1.23 -> 1.30
commitd526e331f82cf8f9592994c20ec4cc7214ca9b7f authorNikolay Korotkiy <sikmir@gmail.com> dateThu 12 Sep 2019, 00:18 (7 years ago) parent2e47cb8
1 file changed+19−11
pkgs/applications/misc/xchm/default.nix+19−11
pkgs/applications/misc/xchm/default.nix+19−11
@@ -1,22 +1,30 @@
1−{stdenv, fetchurl, wxGTK, chmlib}:
1+{ stdenv, fetchFromGitHub, autoreconfHook, wxGTK30, chmlib }:
22
3−stdenv.mkDerivation {
4− name = "xchm-1.23";
5− src = fetchurl {
6− url = mirror://sourceforge/xchm/xchm-1.23.tar.gz;
7− sha256 = "0qn0fyxcrn30ndq2asx31k0qkx3grbm16fb1y580wd2gjmh5r3wg";
3+stdenv.mkDerivation rec {
4+ pname = "xchm";
5+ version = "1.30";
6+
7+ src = fetchFromGitHub {
8+ owner = "rzvncj";
9+ repo = "xCHM";
10+ rev = version;
11+ sha256 = "1sjvh06m8jbb28k6y3knas3nkh1dfvff4mlwjs33x12ilhddhr8v";
812 };
9− buildInputs = [wxGTK chmlib];
1013
11− postConfigure = ''
12− export NIX_LDFLAGS="$NIX_LDFLAGS $(${wxGTK}/lib/wx/config/* --libs | sed -e s@-pthread@@)"
13− echo $NIX_LDFLAGS
14+ nativeBuildInputs = [ autoreconfHook ];
15+ buildInputs = [ wxGTK30 chmlib ];
16+
17+ configureFlags = [ "--with-wx-prefix=${wxGTK30}" ];
18+
19+ preConfigure = ''
20+ export LDFLAGS="$LDFLAGS $(${wxGTK30}/bin/wx-config --libs | sed -e s@-pthread@@) -lwx_gtk2u_aui-3.0"
1421 '';
1522
1623 meta = with stdenv.lib; {
1724 description = "A viewer for Microsoft HTML Help files";
18− homepage = http://xchm.sourceforge.net;
25+ homepage = "https://github.com/rzvncj/xCHM";
1926 license = licenses.gpl2;
27+ maintainers = with maintainers; [ sikmir ];
2028 platforms = platforms.linux;
2129 };
2230}