ae2dc6aea6
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
39 lines
802 B
Nix
39 lines
802 B
Nix
{
|
|
mkKdeDerivation,
|
|
sources,
|
|
rustPlatform,
|
|
cargo,
|
|
rustc,
|
|
discount,
|
|
corrosion,
|
|
alpaka,
|
|
# provided as callPackage input to enable easier overrides through overlays
|
|
cargoHash ? "sha256-t7izRAYjuCYA0YMZaCnvwbVo2UvfTTvdlYUd69T6w/Q=",
|
|
}:
|
|
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
|
|
];
|
|
}
|