587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
34 lines
749 B
Nix
34 lines
749 B
Nix
{
|
|
mkKdeDerivation,
|
|
sources,
|
|
corrosion,
|
|
xapian,
|
|
rustPlatform,
|
|
cargo,
|
|
rustc,
|
|
# provided as callPackage input to enable easier overrides through overlays
|
|
cargoHash ? "sha256-fY0mQiYS/CMThOVsWp8NgxpWfUph2dZ7hj7W5JUJ2J4=",
|
|
}:
|
|
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
|
|
corrosion
|
|
rustc
|
|
];
|
|
|
|
extraBuildInputs = [xapian];
|
|
}
|