blob: 781d71671446e9ff6b232138332868f56715ac87 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{
mkKdeDerivation,
sources,
rustPlatform,
cargo,
rustc,
corrosion,
discount,
alpaka,
# provided as callPackage input to enable easier overrides through overlays
cargoHash ? "sha256-MMCDfCtGDJ+yrfdpZEMxlSh7yWU6de/Pggw7Op7VxQI=",
}:
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
corrosion
rustc
];
extraBuildInputs = [discount alpaka];
}
|