{ stdenv, lib, rustPlatform, pkg-config, nix-update-script, fetchFromGitHub, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "nu_plugin_highlight"; version = "1.4.7+0.105.1"; src = fetchFromGitHub { owner = "cptpiepmatz"; repo = "nu-plugin-highlight"; tag = "v${finalAttrs.version}"; hash = "sha256-0jU0c2v3q3RXX/zZlwTBwAdO8HEaROFNV/F4GBFaMt0="; fetchSubmodules = true; }; cargoHash = "sha256-UD1IzegajAG13iAOERymDa10JbuhvORVZ8gHy9d6buE="; 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 ]; }; })