base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12 (#356361)
[NixPkgs.git] / pkgs / tools / backup / httrack / qt.nix
blobd178185229fda43d35fc2447e8afde56dadd119f
1 { stdenv, mkDerivation, lib, fetchurl, cmake, pkg-config, makeWrapper
2 , httrack, qtbase, qtmultimedia }:
4 mkDerivation rec {
5   pname = "httraqt";
6   version = "1.4.9";
8   src = fetchurl {
9     url = "mirror://sourceforge/httraqt/${pname}-${version}.tar.gz";
10     sha256 = "0pjxqnqchpbla4xiq4rklc06484n46cpahnjy03n9rghwwcad25b";
11   };
13   buildInputs = [ httrack qtbase qtmultimedia ];
15   nativeBuildInputs = [ cmake makeWrapper pkg-config ];
17   prePatch = ''
18     substituteInPlace cmake/HTTRAQTFindHttrack.cmake \
19       --replace /usr/include/httrack/ ${httrack}/include/httrack/
21     substituteInPlace distribution/posix/CMakeLists.txt \
22       --replace /usr/share $out/share
24     substituteInPlace desktop/httraqt.desktop \
25       --replace Exec=httraqt Exec=$out/bin/httraqt
27     substituteInPlace sources/main/httraqt.cpp \
28       --replace /usr/share/httraqt/ $out/share/httraqt
29   '';
31   meta = with lib; {
32     broken = stdenv.hostPlatform.isDarwin;
33     description = "Easy-to-use offline browser / website mirroring utility - QT frontend";
34     mainProgram = "httraqt";
35     homepage    = "http://www.httrack.com";
36     license     = licenses.gpl3;
37     maintainers = with maintainers; [ peterhoeg ];
38     platforms   = with platforms; unix;
39   };