mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
64 lines
1.4 KiB
Nix
64 lines
1.4 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, ncurses
|
|
, which
|
|
, cmake
|
|
, unzip
|
|
, wrapQtAppsHook
|
|
, qtwebengine
|
|
, yaml-cpp
|
|
, libirc
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "huggle";
|
|
version = "3.4.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "huggle";
|
|
repo = "huggle3-qt-lx";
|
|
rev = version;
|
|
sha256 = "UzoX4kdzYU50W0MUhfpo0HaSfvG3eINNC8u5t/gKuqI=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
wrapQtAppsHook
|
|
pkg-config
|
|
which
|
|
cmake
|
|
];
|
|
buildInputs = [ ncurses yaml-cpp qtwebengine libirc ];
|
|
|
|
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}'
|
|
'';
|
|
|
|
cmakeFlags = [
|
|
"-S" "/build/source/src"
|
|
"-DCMAKE_BUILD_TYPE=None"
|
|
"-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";
|
|
homepage = "https://github.com/huggle/huggle3-qt-lx";
|
|
license = licenses.gpl3Only;
|
|
maintainers = [ maintainers.fee1-dead ];
|
|
platforms = platforms.x86_64;
|
|
};
|
|
}
|