From 8988f8589a58de5596f5ef4ff39f72a29fc34ebb Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Wed, 30 Aug 2017 15:02:30 +0800 Subject: httraqt: init at 1.4.9 --- pkgs/tools/backup/httrack/qt.nix | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/tools/backup/httrack/qt.nix (limited to 'pkgs/tools') diff --git a/pkgs/tools/backup/httrack/qt.nix b/pkgs/tools/backup/httrack/qt.nix new file mode 100644 index 000000000000..e29acc6f3c85 --- /dev/null +++ b/pkgs/tools/backup/httrack/qt.nix @@ -0,0 +1,40 @@ +{ stdenv, fetchurl, cmake, pkgconfig, makeWrapper +, httrack, qtbase, qtmultimedia }: + +stdenv.mkDerivation rec { + name = "httraqt-${version}"; + version = "1.4.9"; + + src = fetchurl { + url = "mirror://sourceforge/httraqt/${name}.tar.gz"; + sha256 = "0pjxqnqchpbla4xiq4rklc06484n46cpahnjy03n9rghwwcad25b"; + }; + + buildInputs = [ httrack qtbase qtmultimedia ]; + + nativeBuildInputs = [ cmake makeWrapper pkgconfig ]; + + enableParallelBuilding = true; + + 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 + ''; + + meta = with stdenv.lib; { + description = "Easy-to-use offline browser / website mirroring utility - QT frontend"; + homepage = http://www.httrack.com; + license = licenses.gpl3; + maintainers = with maintainers; [ peterhoeg ]; + platforms = with platforms; unix; + }; +} -- cgit 1.4.1