{ lib , rustPlatform , stdenv , installShellFiles , versionCheckHook , cargoToml , cargoLock , src }: let mainProgram = (lib.head cargoToml.bin).name; pname = cargoToml.package.name; in rustPlatform.buildRustPackage { inherit pname; inherit (cargoToml.package) version; inherit src; cargoLock.lockFile = cargoLock; # doCheck = true; # useNextest = true; # nativeCheckInputs = [ # versionCheckHook # ]; meta = with lib; { license = licenses.mit; platforms = platforms.linux; inherit mainProgram; }; }