2024-02-05 16:43:41 +01:00
|
|
|
{
|
|
|
|
mkKdeDerivation,
|
|
|
|
sources,
|
|
|
|
rustPlatform,
|
|
|
|
cargo,
|
|
|
|
rustc,
|
|
|
|
corrosion,
|
|
|
|
discount,
|
|
|
|
alpaka,
|
|
|
|
# provided as callPackage input to enable easier overrides through overlays
|
2024-04-11 19:00:07 +02:00
|
|
|
cargoHash ? "sha256-Yt1Gxw9Q1Q108YRJoUIpeNZlGjZ7yabLW3bRO4+x6Vo=",
|
2024-02-05 16:43:41 +01:00
|
|
|
}:
|
|
|
|
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
|
2024-04-07 04:53:54 +02:00
|
|
|
corrosion
|
2024-02-05 16:43:41 +01:00
|
|
|
rustc
|
|
|
|
];
|
|
|
|
|
2024-04-07 04:53:54 +02:00
|
|
|
extraBuildInputs = [discount alpaka];
|
2024-02-05 16:43:41 +01:00
|
|
|
}
|