2021-03-07 22:47:42 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
2021-05-10 15:10:29 +00:00
|
|
|
, fetchurl
|
2021-03-07 22:47:42 +00:00
|
|
|
, cmake
|
|
|
|
, corrosion
|
|
|
|
, extra-cmake-modules
|
|
|
|
, kconfig
|
|
|
|
, kcoreaddons
|
|
|
|
, kdbusaddons
|
|
|
|
, ki18n
|
|
|
|
, kirigami2
|
|
|
|
, knotifications
|
|
|
|
, kpurpose
|
|
|
|
, kwindowsystem
|
2021-05-10 15:10:29 +00:00
|
|
|
, qtfeedback
|
2021-03-07 22:47:42 +00:00
|
|
|
, qtquickcontrols2
|
|
|
|
, qtwebengine
|
|
|
|
, rustPlatform
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "angelfish";
|
2021-06-10 15:39:25 +00:00
|
|
|
version = "21.06";
|
2021-03-07 22:47:42 +00:00
|
|
|
|
2021-05-10 15:10:29 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://kde/stable/plasma-mobile/${version}/angelfish-${version}.tar.xz";
|
2021-06-10 15:39:25 +00:00
|
|
|
sha256 = "sha256-iHgmG/DeaUPnRXlVIU8P/oUcYINienYmR2zI9Q4Yd3s=";
|
2021-03-07 22:47:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
2021-06-10 15:39:25 +00:00
|
|
|
sha256 = "0zh0kli7kav18v9znq2f5jklhf3m1kyb41jzmivjx70g9xyfzlwk";
|
2021-03-07 22:47:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
corrosion
|
|
|
|
extra-cmake-modules
|
|
|
|
] ++ (with rustPlatform; [
|
|
|
|
cargoSetupHook
|
|
|
|
rust.cargo
|
|
|
|
rust.rustc
|
|
|
|
]);
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DRust_CARGO=${rustPlatform.rust.cargo}/bin/cargo"
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
kconfig
|
|
|
|
kcoreaddons
|
|
|
|
kdbusaddons
|
|
|
|
ki18n
|
|
|
|
kirigami2
|
|
|
|
knotifications
|
|
|
|
kpurpose
|
|
|
|
kwindowsystem
|
2021-05-10 15:10:29 +00:00
|
|
|
qtfeedback
|
2021-03-07 22:47:42 +00:00
|
|
|
qtquickcontrols2
|
|
|
|
qtwebengine
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Web browser for Plasma Mobile";
|
|
|
|
homepage = "https://apps.kde.org/en/mobile.angelfish";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|