mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
bb34e9035b
This makes Hydra build it on aarch64-linux too.
80 lines
1.4 KiB
Nix
80 lines
1.4 KiB
Nix
{ lib
|
|
, mkDerivation
|
|
, fetchurl
|
|
# build-time
|
|
, extra-cmake-modules
|
|
, shared-mime-info
|
|
# Qt
|
|
, qtxmlpatterns
|
|
, qtwebengine
|
|
, qca-qt5
|
|
, qtnetworkauth
|
|
# KDE
|
|
, ki18n
|
|
, kxmlgui
|
|
, kio
|
|
, kiconthemes
|
|
, kitemviews
|
|
, kparts
|
|
, kcoreaddons
|
|
, kservice
|
|
, ktexteditor
|
|
, kdoctools
|
|
, kwallet
|
|
, kcrash
|
|
# other
|
|
, poppler
|
|
, bibutils
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "kbibtex";
|
|
version = "0.10.0";
|
|
|
|
src = let
|
|
majorMinorPatch = lib.concatStringsSep "." (lib.take 3 (lib.splitVersion version));
|
|
in fetchurl {
|
|
url = "mirror://kde/stable/KBibTeX/${majorMinorPatch}/kbibtex-${version}.tar.xz";
|
|
hash = "sha256-sSeyQKfNd8U4YZ3IgqOZs8bM13oEQopJevkG8U0JuMQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
extra-cmake-modules
|
|
shared-mime-info
|
|
];
|
|
|
|
buildInputs = [
|
|
qtxmlpatterns
|
|
qtwebengine
|
|
qca-qt5
|
|
qtnetworkauth
|
|
# 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 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|