2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv, mkDerivation, lib, fetchurl, cmake, pkg-config, makeWrapper
|
2020-04-24 23:36:52 +00:00
|
|
|
, httrack, qtbase, qtmultimedia }:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "httraqt";
|
|
|
|
version = "1.4.9";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/httraqt/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0pjxqnqchpbla4xiq4rklc06484n46cpahnjy03n9rghwwcad25b";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ httrack qtbase qtmultimedia ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake makeWrapper pkg-config ];
|
2020-04-24 23:36:52 +00: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-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Easy-to-use offline browser / website mirroring utility - QT frontend";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "httraqt";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.httrack.com";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|