2021-01-25 08:26:54 +00:00
|
|
|
{ mkDerivation, lib, fetchurl, cmake, pkg-config, makeWrapper
|
2017-08-30 08:02:30 +01:00
|
|
|
, httrack, qtbase, qtmultimedia }:
|
|
|
|
|
2020-04-07 21:23:53 +01:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "httraqt";
|
2017-08-30 08:02:30 +01:00
|
|
|
version = "1.4.9";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/httraqt/${pname}-${version}.tar.gz";
|
2017-08-30 08:02:30 +01:00
|
|
|
sha256 = "0pjxqnqchpbla4xiq4rklc06484n46cpahnjy03n9rghwwcad25b";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ httrack qtbase qtmultimedia ];
|
|
|
|
|
2021-01-17 09:17:16 +00:00
|
|
|
nativeBuildInputs = [ cmake makeWrapper pkg-config ];
|
2017-08-30 08:02:30 +01:00
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace cmake/HTTRAQTFindHttrack.cmake \
|
|
|
|
--replace /usr/include/httrack/ ${httrack}/include/httrack/
|
|
|
|
|
|
|
|
substituteInPlace distribution/posix/CMakeLists.txt \
|
|
|
|
--replace /usr/share $out/share
|
|
|
|
|
|
|
|
substituteInPlace desktop/httraqt.desktop \
|
|
|
|
--replace Exec=httraqt Exec=$out/bin/httraqt
|
|
|
|
|
|
|
|
substituteInPlace sources/main/httraqt.cpp \
|
|
|
|
--replace /usr/share/httraqt/ $out/share/httraqt
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-08-30 08:02:30 +01:00
|
|
|
description = "Easy-to-use offline browser / website mirroring utility - QT frontend";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.httrack.com";
|
2017-08-30 08:02:30 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|