mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ stdenv, fetchurl, cmake, pkgconfig, makeWrapper
|
|
, httrack, qtbase, qtmultimedia }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "httraqt";
|
|
version = "1.4.9";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/httraqt/${pname}-${version}.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;
|
|
};
|
|
}
|