nushellPlugins.query: init at 0.78.0

authored by

happysalada and committed by
Yt
c617af9c 642ee237

+44
+5
pkgs/shells/nushell/plugins/default.nix
··· 1 + { lib, newScope, IOKit, CoreFoundation }: 2 + 3 + lib.makeScope newScope (self: with self; { 4 + query = callPackage ./query.nix { inherit IOKit CoreFoundation; }; 5 + })
+35
pkgs/shells/nushell/plugins/query.nix
··· 1 + { stdenv 2 + , lib 3 + , rustPlatform 4 + , nushell 5 + , nix-update-script 6 + , IOKit 7 + , CoreFoundation 8 + }: 9 + 10 + let 11 + pname = "nushell_plugin_query"; 12 + in 13 + rustPlatform.buildRustPackage { 14 + inherit pname; 15 + version = nushell.version; 16 + 17 + src = nushell.src; 18 + 19 + cargoHash = "sha256-tHTAz3/4EihdVGXAePCmcOUOjeaqjrY6fIESOGcCW/8="; 20 + 21 + buildInputs = lib.optionals stdenv.isDarwin [ IOKit CoreFoundation ]; 22 + 23 + cargoBuildFlags = [ "--package nu_plugin_query" ]; 24 + 25 + # compilation fails with a missing symbol 26 + doCheck = false; 27 + 28 + meta = with lib; { 29 + description = "A Nushell plugin to query JSON, XML, and various web data"; 30 + homepage = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_query"; 31 + license = licenses.mpl20; 32 + maintainers = with maintainers; [ happysalada ]; 33 + platforms = with platforms; all; 34 + }; 35 + }
+4
pkgs/top-level/all-packages.nix
··· 26819 26819 26820 26820 nu_scripts = callPackage ../shells/nushell/nu_scripts { }; 26821 26821 26822 + nushellPlugins = callPackage ../shells/nushell/plugins { 26823 + inherit (darwin.apple_sdk_11_0.frameworks) IOKit CoreFoundation; 26824 + }; 26825 + 26822 26826 nettools = if stdenv.isLinux 26823 26827 then callPackage ../os-specific/linux/net-tools { } 26824 26828 else unixtools.nettools;