2021-02-13 14:23:35 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchurl
|
|
|
|
# build-time
|
|
|
|
, extra-cmake-modules
|
|
|
|
, shared-mime-info
|
|
|
|
# Qt
|
|
|
|
, qtxmlpatterns
|
|
|
|
, qtwebengine
|
|
|
|
, qca-qt5
|
|
|
|
# KDE
|
|
|
|
, ki18n
|
|
|
|
, kxmlgui
|
|
|
|
, kio
|
|
|
|
, kiconthemes
|
|
|
|
, kitemviews
|
|
|
|
, kparts
|
|
|
|
, kcoreaddons
|
|
|
|
, kservice
|
|
|
|
, ktexteditor
|
|
|
|
, kdoctools
|
|
|
|
, kwallet
|
|
|
|
, kcrash
|
|
|
|
# other
|
|
|
|
, poppler
|
|
|
|
, bibutils
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "kbibtex";
|
2023-03-08 16:32:21 +00:00
|
|
|
version = "0.9.3.2";
|
2021-02-13 14:23:35 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
src = let
|
|
|
|
majorMinorPatch = lib.concatStringsSep "." (lib.take 3 (lib.splitVersion version));
|
|
|
|
in fetchurl {
|
|
|
|
url = "mirror://kde/stable/KBibTeX/${majorMinorPatch}/kbibtex-${version}.tar.xz";
|
2023-03-08 16:32:21 +00:00
|
|
|
hash = "sha256-BzPCTKMiMnzz2S+jbk4ZbEudyJX5EaTDVY59te/AxFc=";
|
2021-02-13 14:23:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
extra-cmake-modules
|
|
|
|
shared-mime-info
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtxmlpatterns
|
|
|
|
qtwebengine
|
|
|
|
qca-qt5
|
|
|
|
# TODO qtoauth
|
|
|
|
ki18n
|
|
|
|
kxmlgui
|
|
|
|
kio
|
|
|
|
kiconthemes
|
|
|
|
kitemviews
|
|
|
|
kparts
|
|
|
|
kcoreaddons
|
|
|
|
kservice
|
|
|
|
ktexteditor
|
|
|
|
kdoctools
|
|
|
|
kwallet
|
|
|
|
kcrash
|
|
|
|
poppler
|
|
|
|
];
|
|
|
|
|
|
|
|
qtWrapperArgs = [
|
|
|
|
"--prefix" "PATH" ":" "${lib.makeBinPath [ bibutils ]}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Bibliography editor for KDE";
|
|
|
|
homepage = "https://userbase.kde.org/KBibTeX";
|
|
|
|
changelog = "https://invent.kde.org/office/kbibtex/-/raw/v${version}/ChangeLog";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|