{ lib, rustPlatform, makeWrapper, less, coreutils, }: 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 coreutils]} ''; }