nixpkgs/pkgs/kde/gear/kdepim-addons/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
790 B
Nix
Raw Normal View History

{
mkKdeDerivation,
sources,
rustPlatform,
cargo,
rustc,
corrosion,
discount,
alpaka,
# provided as callPackage input to enable easier overrides through overlays
2024-04-11 19:00:07 +02:00
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
corrosion
rustc
];
extraBuildInputs = [discount alpaka];
}