2024-02-29 20:09:43 +00:00
|
|
|
{
|
|
|
|
mkKdeDerivation,
|
|
|
|
sources,
|
|
|
|
corrosion,
|
|
|
|
xapian,
|
|
|
|
rustPlatform,
|
|
|
|
cargo,
|
|
|
|
rustc,
|
|
|
|
# provided as callPackage input to enable easier overrides through overlays
|
2024-04-21 15:54:59 +00:00
|
|
|
cargoHash ? "sha256-fY0mQiYS/CMThOVsWp8NgxpWfUph2dZ7hj7W5JUJ2J4=",
|
2024-02-29 20:09:43 +00:00
|
|
|
}:
|
|
|
|
mkKdeDerivation rec {
|
|
|
|
pname = "akonadi-search";
|
|
|
|
inherit (sources.${pname}) version;
|
|
|
|
|
|
|
|
cargoRoot = "agent/rs/htmlparser";
|
|
|
|
|
|
|
|
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
|
2024-04-21 15:54:59 +00:00
|
|
|
corrosion
|
2024-02-29 20:09:43 +00:00
|
|
|
rustc
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
extraBuildInputs = [xapian];
|
2024-02-29 20:09:43 +00:00
|
|
|
}
|