File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed
pkgs/shells/nushell/plugins Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -8,4 +8,5 @@ lib.makeScope newScope (self: with self; {
88 regex = throw "`nu_plugin_regex` is no longer compatible with the current Nushell release." ;
99 net = callPackage ./net.nix { inherit IOKit CoreFoundation ; } ;
1010 units = callPackage ./units.nix { } ;
11+ highlight = callPackage ./highlight.nix { } ;
1112} )
Original file line number Diff line number Diff line change 1+ {
2+ stdenv ,
3+ lib ,
4+ rustPlatform ,
5+ pkg-config ,
6+ nix-update-script ,
7+ fetchFromGitHub ,
8+ } :
9+
10+ rustPlatform . buildRustPackage rec {
11+ pname = "nushell_plugin_highlight" ;
12+ version = "1.3.1+0.98.0" ;
13+
14+ src = fetchFromGitHub {
15+ repo = "nu-plugin-highlight" ;
16+ owner = "cptpiepmatz" ;
17+ rev = "v${ version } " ;
18+ hash = "sha256-G669d13JBLdy/1RUXtgZkiQhjgn3SqV34VlLbQoVOzc=" ;
19+ } ;
20+ cargoHash = "sha256-ZZyxRiAaazLIwWtl9f30yp94HiKao3ZlYJ6B/vK14jc=" ;
21+
22+ nativeBuildInputs = [ pkg-config ] ++ lib . optionals stdenv . cc . isClang [ rustPlatform . bindgenHook ] ;
23+ buildInputs = [ ] ;
24+ cargoBuildFlags = [ "--package nu_plugin_highlight" ] ;
25+
26+ checkPhase = ''
27+ cargo test
28+ '' ;
29+
30+ passthru . updateScript = nix-update-script { } ;
31+
32+ meta = with lib ; {
33+ description = "A nushell plugin that will inspect a file and return information based on it's magic number." ;
34+ mainProgram = "nu_plugin_highlight" ;
35+ homepage = "https://github.com/cptpiepmatz/nu-plugin-highlight" ;
36+ license = licenses . mit ;
37+ maintainers = with maintainers ; [ mgttlinger ] ;
38+ platforms = with platforms ; all ;
39+ } ;
40+ }
You can’t perform that action at this time.
0 commit comments