nixpkgs/pkgs/applications/kde/angelfish.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

84 lines
1.6 KiB
Nix

{
lib,
mkDerivation,
cargo,
cmake,
corrosion,
extra-cmake-modules,
fetchpatch2,
futuresql,
kconfig,
kcoreaddons,
kdbusaddons,
ki18n,
kirigami-addons,
kirigami2,
knotifications,
kpurpose,
kwindowsystem,
qcoro,
qtfeedback,
qtquickcontrols2,
qqc2-desktop-style,
qtwebengine,
rustPlatform,
rustc,
srcs,
# provided as callPackage input to enable easier overrides through overlays
cargoSha256 ? "sha256-PSrTo7nGgH0KxA82RlBEwtOu80WMCBeaCxHj3n7SgEE=",
}:
mkDerivation rec {
pname = "angelfish";
patches = [
(fetchpatch2 {
name = "fix-build-with-corrosion-0.5.patch";
url = "https://invent.kde.org/network/angelfish/-/commit/b04928e3b62a11b647622b81fb67b7c0db656ac8.patch";
hash = "sha256-9rpkMKQKrvGJFIQDwSIeeZyk4/vd348r660mBOKzM2E=";
})
];
cargoDeps = rustPlatform.fetchCargoTarball {
# include version in the name so we invalidate the FOD
name = "${pname}-${srcs.angelfish.version}";
inherit (srcs.angelfish) src;
sha256 = cargoSha256;
};
nativeBuildInputs = [
cmake
corrosion
extra-cmake-modules
rustPlatform.cargoSetupHook
cargo
rustc
];
buildInputs = [
futuresql
kconfig
kcoreaddons
kdbusaddons
ki18n
kirigami-addons
kirigami2
knotifications
kpurpose
kwindowsystem
qcoro
qtfeedback
qtquickcontrols2
qqc2-desktop-style
qtwebengine
];
meta = with lib; {
description = "Web browser for Plasma Mobile";
homepage = "https://invent.kde.org/plasma-mobile/angelfish";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ dotlambda ];
};
}