depot/third_party/nixpkgs/pkgs/kde/gear/kdepim-addons/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

35 lines
786 B
Nix

{
mkKdeDerivation,
sources,
rustPlatform,
cargo,
rustc,
discount,
corrosion,
alpaka,
# provided as callPackage input to enable easier overrides through overlays
cargoHash ? "sha256-uFQhxNpH9KG5+27EZNBwDX2sswd1nI86bESeeOnPXA4=",
}:
mkKdeDerivation rec {
pname = "kdepim-addons";
inherit (sources.${pname}) version;
cargoRoot = "plugins/webengineurlinterceptor/adblock";
cargoDeps = rustPlatform.fetchCargoTarball {
# include version in the name so we invalidate the FOD
name = "${pname}-${version}";
src = sources.${pname};
sourceRoot = "${pname}-${version}/${cargoRoot}";
hash = cargoHash;
};
extraNativeBuildInputs = [
rustPlatform.cargoSetupHook
cargo
rustc
];
extraBuildInputs = [discount corrosion alpaka];
}