c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
33 lines
745 B
Nix
33 lines
745 B
Nix
{
|
|
mkKdeDerivation,
|
|
sources,
|
|
corrosion,
|
|
xapian,
|
|
rustPlatform,
|
|
cargo,
|
|
rustc,
|
|
# provided as callPackage input to enable easier overrides through overlays
|
|
cargoHash ? "sha256-euUaB+QCwwwPjrUq+3NHt0hjDSW5gch8MwS57KmtIWI=",
|
|
}:
|
|
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
|
|
rustc
|
|
];
|
|
|
|
extraBuildInputs = [corrosion xapian];
|
|
}
|