2021-03-07 22:47:42 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
mkDerivation,
|
2023-05-12 14:17:16 +00:00
|
|
|
cargo,
|
2021-03-07 22:47:42 +00:00
|
|
|
cmake,
|
|
|
|
corrosion,
|
|
|
|
extra-cmake-modules,
|
2024-06-09 05:30:06 +00:00
|
|
|
fetchpatch2,
|
2023-08-24 10:59:41 +00:00
|
|
|
futuresql,
|
2021-03-07 22:47:42 +00:00
|
|
|
kconfig,
|
|
|
|
kcoreaddons,
|
|
|
|
kdbusaddons,
|
|
|
|
ki18n,
|
2023-02-02 23:05:02 +00:00
|
|
|
kirigami-addons,
|
2021-03-07 22:47:42 +00:00
|
|
|
kirigami2,
|
|
|
|
knotifications,
|
|
|
|
kpurpose,
|
|
|
|
kwindowsystem,
|
2023-08-24 10:59:41 +00:00
|
|
|
qcoro,
|
2021-05-10 15:10:29 +00:00
|
|
|
qtfeedback,
|
2021-03-07 22:47:42 +00:00
|
|
|
qtquickcontrols2,
|
2023-03-17 22:39:35 +00:00
|
|
|
qqc2-desktop-style,
|
2021-03-07 22:47:42 +00:00
|
|
|
qtwebengine,
|
|
|
|
rustPlatform,
|
2023-05-12 14:17:16 +00:00
|
|
|
rustc,
|
2021-10-07 00:58:48 +00:00
|
|
|
srcs,
|
2021-10-18 20:23:44 +00:00
|
|
|
|
2023-05-12 07:30:12 +00:00
|
|
|
# provided as callPackage input to enable easier overrides through overlays
|
2024-02-15 14:18:39 +00:00
|
|
|
cargoSha256 ? "sha256-PSrTo7nGgH0KxA82RlBEwtOu80WMCBeaCxHj3n7SgEE=",
|
2021-03-07 22:47:42 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "angelfish";
|
|
|
|
|
2024-06-09 05:30:06 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch2 {
|
|
|
|
name = "fix-build-with-corrosion-0.5.patch";
|
|
|
|
url = "https://invent.kde.org/network/angelfish/-/commit/b04928e3b62a11b647622b81fb67b7c0db656ac8.patch";
|
|
|
|
hash = "sha256-9rpkMKQKrvGJFIQDwSIeeZyk4/vd348r660mBOKzM2E=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-03-07 22:47:42 +00:00
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
2023-05-12 07:30:12 +00:00
|
|
|
# include version in the name so we invalidate the FOD
|
2021-10-07 00:58:48 +00:00
|
|
|
name = "${pname}-${srcs.angelfish.version}";
|
2023-05-12 07:30:12 +00:00
|
|
|
inherit (srcs.angelfish) src;
|
2021-10-18 20:23:44 +00:00
|
|
|
sha256 = cargoSha256;
|
2021-03-07 22:47:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
corrosion
|
|
|
|
extra-cmake-modules
|
2023-05-12 14:17:16 +00:00
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
cargo
|
|
|
|
rustc
|
|
|
|
];
|
2021-03-07 22:47:42 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2023-08-24 10:59:41 +00:00
|
|
|
futuresql
|
2021-03-07 22:47:42 +00:00
|
|
|
kconfig
|
|
|
|
kcoreaddons
|
|
|
|
kdbusaddons
|
|
|
|
ki18n
|
2023-02-02 23:05:02 +00:00
|
|
|
kirigami-addons
|
2021-03-07 22:47:42 +00:00
|
|
|
kirigami2
|
|
|
|
knotifications
|
|
|
|
kpurpose
|
|
|
|
kwindowsystem
|
2023-08-24 10:59:41 +00:00
|
|
|
qcoro
|
2021-05-10 15:10:29 +00:00
|
|
|
qtfeedback
|
2021-03-07 22:47:42 +00:00
|
|
|
qtquickcontrols2
|
2023-03-17 22:39:35 +00:00
|
|
|
qqc2-desktop-style
|
2021-03-07 22:47:42 +00:00
|
|
|
qtwebengine
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Web browser for Plasma Mobile";
|
2021-09-22 04:09:38 +00:00
|
|
|
homepage = "https://invent.kde.org/plasma-mobile/angelfish";
|
2021-03-07 22:47:42 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|