blob: 66c24a91bdeeda9fb4a0fb0807c0035f9cbea66e (
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
|
{
mkKdeDerivation,
sources,
rustPlatform,
cargo,
rustc,
corrosion,
discount,
alpaka,
# provided as callPackage input to enable easier overrides through overlays
cargoHash ? "sha256-z2W2TxyN6Ye+KUaqz5nPAG5zxeABu/UXWuz+XpDpNfc=",
}:
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 = [corrosion discount alpaka];
}
|