9 rustPlatform.buildRustPackage rec {
10 pname = "preserves-tools";
14 inherit pname version;
15 hash = "sha256-Uyh5mXCypX3TDxxJtnTe6lBoVI8aqdG56ywn7htDGUY=";
18 cargoHash = "sha256-rDo/jA4b+GV90SKM82JcGTX1pcAQUeBrLvGwU/geGOw=";
20 nativeBuildInputs = [ installShellFiles ];
21 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
22 installShellCompletion --cmd preserves-tool \
23 --bash <($out/bin/preserves-tool completions bash) \
24 --fish <($out/bin/preserves-tool completions fish) \
25 --zsh <($out/bin/preserves-tool completions zsh)
29 description = "Command-line utilities for working with Preserves documents";
30 homepage = "https://preserves.dev/doc/preserves-tool.html";
31 license = lib.licenses.asl20;
32 maintainers = with lib.maintainers; [ ehmry ];
33 mainProgram = "preserves-tool";