{ lib, rustPlatform, makeWrapper, less, fmt, }: rustPlatform.buildRustPackage { pname = "comments"; version = "0.1.0"; src = ./.; cargoLock = { lockFile = ./Cargo.lock; }; nativeBuildInputs = [ makeWrapper ]; postInstall = '' wrapProgram $out/bin/comments \ --set PATH ${lib.makeBinPath [less fmt]} ''; }