2022-10-15 16:40:29 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, ncurses
|
|
|
|
, which
|
|
|
|
, cmake
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, qtwebengine
|
2023-01-29 14:44:19 +00:00
|
|
|
, yaml-cpp
|
2022-10-15 16:40:29 +00:00
|
|
|
, libirc
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "huggle";
|
2024-11-07 08:31:54 +00:00
|
|
|
version = "3.4.13";
|
2022-10-15 16:40:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "huggle";
|
|
|
|
repo = "huggle3-qt-lx";
|
|
|
|
rev = version;
|
2024-11-07 08:31:54 +00:00
|
|
|
sha256 = "sha256-f7Oo6x262Ju9KY8f/xjm9gL6I1fRCaDsQWGWJMUNUfY=";
|
2022-10-15 16:40:29 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapQtAppsHook
|
|
|
|
pkg-config
|
|
|
|
which
|
|
|
|
cmake
|
|
|
|
];
|
2023-01-29 14:44:19 +00:00
|
|
|
buildInputs = [ ncurses yaml-cpp qtwebengine libirc ];
|
2022-10-15 16:40:29 +00:00
|
|
|
|
|
|
|
patches = [ ./00-remove-third-party.patch ./01-extensions.patch ];
|
|
|
|
postPatch = ''
|
|
|
|
rm -r src/3rd
|
|
|
|
echo ${version} > src/huggle_core/version.txt
|
|
|
|
substituteInPlace src/huggle_core/definitions_prod.hpp --subst-var out
|
|
|
|
substituteInPlace src/CMakeLists.txt --replace '@libirc_includes@' '${libirc.out}'
|
|
|
|
'';
|
|
|
|
|
2023-07-23 21:45:18 +00:00
|
|
|
cmakeBuildType = "None";
|
|
|
|
|
2022-10-15 16:40:29 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-S" "/build/source/src"
|
|
|
|
"-DINSTALL_DATA_DIR=bin"
|
|
|
|
"-DQT5_BUILD=ON"
|
|
|
|
"-DWEB_ENGINE=ON"
|
|
|
|
"-DBUILD_SHARED_LIBS=OFF"
|
|
|
|
"-Wno-dev"
|
|
|
|
"-DHUGGLE_EXT=TRUE"
|
|
|
|
];
|
|
|
|
|
|
|
|
installTargets = [ "install" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Anti-vandalism tool for use on MediaWiki-based projects";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "huggle";
|
2022-10-15 16:40:29 +00:00
|
|
|
homepage = "https://github.com/huggle/huggle3-qt-lx";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = [ maintainers.fee1-dead ];
|
|
|
|
platforms = platforms.x86_64;
|
|
|
|
};
|
|
|
|
}
|