Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
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-2t4i7lTJxVNjsU5eO6svadZBIerSyXt6BMScpEl119s=",
|
|
}:
|
|
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
|
|
];
|
|
}
|