3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/plasma-mobile/angelfish.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

80 lines
1.7 KiB
Nix
Raw Normal View History

2021-03-07 22:47:42 +00:00
{ lib
, mkDerivation
, cmake
, corrosion
, extra-cmake-modules
, gcc11
2021-03-07 22:47:42 +00:00
, kconfig
, kcoreaddons
, kdbusaddons
, ki18n
, kirigami2
, knotifications
, kpurpose
, kwindowsystem
, qtfeedback
2021-03-07 22:47:42 +00:00
, qtquickcontrols2
, qtwebengine
, rustPlatform
, srcs
# These must be updated in tandem with package updates.
, cargoShaForVersion ? "22.09"
, cargoSha256 ? "sha256-uxLvAhRV185srZZ0ZMsLRevAyMmajXERPRYotMcnLJA="
2021-03-07 22:47:42 +00:00
}:
# Guard against incomplete updates.
# Values are provided as callPackage inputs to enable easier overrides through overlays.
if cargoShaForVersion != srcs.angelfish.version
then builtins.throw ''
angelfish package update is incomplete.
Hash for cargo dependencies is declared for version ${cargoShaForVersion}, but we're building ${srcs.angelfish.version}.
Update the cargoSha256 and cargoShaForVersion for angelfish.
'' else
2021-03-07 22:47:42 +00:00
mkDerivation rec {
pname = "angelfish";
cargoDeps = rustPlatform.fetchCargoTarball {
src = srcs.angelfish.src;
name = "${pname}-${srcs.angelfish.version}";
sha256 = cargoSha256;
2021-03-07 22:47:42 +00:00
};
nativeBuildInputs = [
cmake
corrosion
extra-cmake-modules
gcc11 # doesn't build with GCC 9 from stdenv on aarch64
2021-03-07 22:47:42 +00:00
] ++ (with rustPlatform; [
cargoSetupHook
rust.cargo
rust.rustc
]);
cmakeFlags = [
"-DRust_CARGO=${rustPlatform.rust.cargo}/bin/cargo"
];
buildInputs = [
kconfig
kcoreaddons
kdbusaddons
ki18n
kirigami2
knotifications
kpurpose
kwindowsystem
qtfeedback
2021-03-07 22:47:42 +00:00
qtquickcontrols2
qtwebengine
];
meta = with lib; {
description = "Web browser for Plasma Mobile";
2021-09-22 05:09:38 +01:00
homepage = "https://invent.kde.org/plasma-mobile/angelfish";
2021-03-07 22:47:42 +00:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ dotlambda ];
};
}