diff options
Diffstat (limited to 'nixpkgs/pkgs/kde/gear/akonadi-search')
-rw-r--r-- | nixpkgs/pkgs/kde/gear/akonadi-search/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/kde/gear/akonadi-search/default.nix b/nixpkgs/pkgs/kde/gear/akonadi-search/default.nix new file mode 100644 index 000000000000..3cc1a01bd878 --- /dev/null +++ b/nixpkgs/pkgs/kde/gear/akonadi-search/default.nix @@ -0,0 +1,33 @@ +{ + mkKdeDerivation, + sources, + corrosion, + xapian, + rustPlatform, + cargo, + rustc, + # provided as callPackage input to enable easier overrides through overlays + cargoHash ? "sha256-Mo94kfA4w280YdazhuVaS/vw7B0y9W/LYaHLLnV/3IE=", +}: +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]; +} |