{ lib , rustPlatform , fetchFromGitHub }: { mkRustPackage = { pname , version , githubOwner , githubHash , cargoHash , description ? null , license , maintainers , buildInputs ? [ ] , nativeBuildInputs ? [ ] }: rustPlatform.buildRustPackage rec { inherit pname version buildInputs nativeBuildInputs cargoHash; src = fetchFromGitHub { owner = githubOwner; repo = pname; rev = version; hash = githubHash; }; doCheck = false; meta = with lib; { inherit description license; homepage = "https://github.com/${githubOwner}/${pname}"; inherit maintainers; mainProgram = pname; }; }; }