at master 38 lines 969 B view raw
1{ 2 stdenv, 3 lib, 4 rustPlatform, 5 pkg-config, 6 nix-update-script, 7 fetchFromGitHub, 8}: 9 10rustPlatform.buildRustPackage (finalAttrs: { 11 pname = "nu_plugin_highlight"; 12 version = "1.4.8+0.106.0"; 13 14 src = fetchFromGitHub { 15 owner = "cptpiepmatz"; 16 repo = "nu-plugin-highlight"; 17 tag = "v${finalAttrs.version}"; 18 hash = "sha256-H7bCX13miQECEPCOT2eF+TBkUU3qff+LhOiA008GLdI="; 19 fetchSubmodules = true; 20 }; 21 22 cargoHash = "sha256-Qf6qEY6imcI0rfktGl5ErsbT+HCDgTohl+NKFsrQbzA="; 23 24 nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ]; 25 26 # there are no tests 27 doCheck = false; 28 29 passthru.updateScript = nix-update-script { }; 30 31 meta = { 32 description = "`nushell` plugin for syntax highlighting"; 33 mainProgram = "nu_plugin_highlight"; 34 homepage = "https://github.com/cptpiepmatz/nu-plugin-highlight"; 35 license = lib.licenses.mit; 36 maintainers = with lib.maintainers; [ mgttlinger ]; 37 }; 38})