{ lib, rustPlatform, fetchFromGitHub, }: { pname, version, githubOwner, githubHash, cargoHash, description ? null, license, maintainers ? null, 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; }; }