{ rustPlatform, installShellFiles, }: rustPlatform.buildRustPackage { pname = "tskm"; version = "0.1.0"; src = ./.; cargoLock = { lockFile = ./Cargo.lock; }; env = { SHELL_COMPLETION_DIR = "./shell"; }; nativeBuildInputs = [ installShellFiles ]; postInstall = '' installShellCompletion --cmd tskm \ --bash ./shell/tskm.bash \ --fish ./shell/tskm.fish \ --zsh ./shell/_tskm ''; meta = { mainProgram = "tskm"; }; }