nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 38 lines 970 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.12+0.110.0"; 13 14 src = fetchFromGitHub { 15 owner = "cptpiepmatz"; 16 repo = "nu-plugin-highlight"; 17 tag = "v${finalAttrs.version}"; 18 hash = "sha256-20b+EiB95BzDVWibWQuG8ozPRV8LbxG7fHEbyTk3xTE="; 19 fetchSubmodules = true; 20 }; 21 22 cargoHash = "sha256-pkLcTjZYLERMhK18zPdfldHrECHXQpcg5i6rsyxw7nQ="; 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})