5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
35 lines
786 B
Nix
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-Yt1Gxw9Q1Q108YRJoUIpeNZlGjZ7yabLW3bRO4+x6Vo=",
|
|
}:
|
|
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];
|
|
}
|