Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 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.7+0.105.1"; 13 14 src = fetchFromGitHub { 15 owner = "cptpiepmatz"; 16 repo = "nu-plugin-highlight"; 17 tag = "v${finalAttrs.version}"; 18 hash = "sha256-0jU0c2v3q3RXX/zZlwTBwAdO8HEaROFNV/F4GBFaMt0="; 19 fetchSubmodules = true; 20 }; 21 22 cargoHash = "sha256-UD1IzegajAG13iAOERymDa10JbuhvORVZ8gHy9d6buE="; 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})