aeb5c13c42
Diff: https://github.com/cptpiepmatz/nu-plugin-highlight/compare/v1.4.8+0.106.0...v1.4.10+0.108.0
39 lines
970 B
Nix
39 lines
970 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
rustPlatform,
|
|
pkg-config,
|
|
nix-update-script,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "nu_plugin_highlight";
|
|
version = "1.4.10+0.108.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cptpiepmatz";
|
|
repo = "nu-plugin-highlight";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-ynvLvGMxFiYOYGPDdlv1509lWU5DpfBK9Mwa9gLeHsI=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
cargoHash = "sha256-Xq7ctnzcrSPzo3M3p3Vxtj0U0U9Miw+2VuyYs6P3GlQ=";
|
|
|
|
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 ];
|
|
};
|
|
})
|