{ rustPlatform, fetchFromGitHub, }: let src = fetchFromGitHub { owner = "feel-co"; repo = "smfh"; rev = "39f5c06153f63100376bc607b1465850b6df77fd"; hash = "sha256-/9Ww10kYopxfCNNnNDwENTubs7Wzqlw+O6PJAHNOYQw="; }; cargo = (builtins.fromTOML (builtins.readFile "${src}/Cargo.toml")); in rustPlatform.buildRustPackage { inherit src; inherit (cargo.package) version; pname = cargo.package.name; cargoLock.lockFile = "${src}/Cargo.lock"; meta.mainProgram = "smfh"; }