{ stdenv, lib, rustPlatform, pkg-config, nix-update-script, fetchFromGitHub, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "nu_plugin_highlight"; version = "1.4.8+0.106.0"; src = fetchFromGitHub { owner = "cptpiepmatz"; repo = "nu-plugin-highlight"; tag = "v${finalAttrs.version}"; hash = "sha256-H7bCX13miQECEPCOT2eF+TBkUU3qff+LhOiA008GLdI="; fetchSubmodules = true; }; cargoHash = "sha256-Qf6qEY6imcI0rfktGl5ErsbT+HCDgTohl+NKFsrQbzA="; nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ]; # there are no tests doCheck = false; passthru.updateScript = nix-update-script { }; meta = { description = "`nushell` plugin for syntax highlighting"; mainProgram = "nu_plugin_highlight"; homepage = "https://github.com/cptpiepmatz/nu-plugin-highlight"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ mgttlinger ]; }; })