{ lib, fetchFromGitHub, rustPlatform, }: rustPlatform.buildRustPackage rec { pname = "parinfer-rust"; version = "0.5.0-unstable-2024-05-07"; src = fetchFromGitHub { owner = "eraserhd"; repo = "parinfer-rust"; rev = "d84828b453e158d06406f6b5e9056f6b54ff76c9"; hash = "sha256-Q2fYogfn5QcNDEie4sUaVydAmDmcFXnsvz35cxPCf+M="; }; cargoHash = "sha256-awps5BAtImc7q/D2W/vPOrFVh45k43xqUJXbOTyZF+s="; buildFeatures = [ "emacs" ]; nativeBuildInputs = [ rustPlatform.bindgenHook ]; meta = with lib; { description = "A Rust port of parinfer"; inherit (src.meta) homepage; license = licenses.isc; maintainers = with maintainers; [ azahi ]; }; }