mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
nushellPlugins.query: init at 0.78.0
This commit is contained in:
parent
642ee2373c
commit
c617af9c05
5
pkgs/shells/nushell/plugins/default.nix
Normal file
5
pkgs/shells/nushell/plugins/default.nix
Normal file
@ -0,0 +1,5 @@
|
||||
{ lib, newScope, IOKit, CoreFoundation }:
|
||||
|
||||
lib.makeScope newScope (self: with self; {
|
||||
query = callPackage ./query.nix { inherit IOKit CoreFoundation; };
|
||||
})
|
35
pkgs/shells/nushell/plugins/query.nix
Normal file
35
pkgs/shells/nushell/plugins/query.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, rustPlatform
|
||||
, nushell
|
||||
, nix-update-script
|
||||
, IOKit
|
||||
, CoreFoundation
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "nushell_plugin_query";
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
inherit pname;
|
||||
version = nushell.version;
|
||||
|
||||
src = nushell.src;
|
||||
|
||||
cargoHash = "sha256-tHTAz3/4EihdVGXAePCmcOUOjeaqjrY6fIESOGcCW/8=";
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ IOKit CoreFoundation ];
|
||||
|
||||
cargoBuildFlags = [ "--package nu_plugin_query" ];
|
||||
|
||||
# compilation fails with a missing symbol
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Nushell plugin to query JSON, XML, and various web data";
|
||||
homepage = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_query";
|
||||
license = licenses.mpl20;
|
||||
maintainers = with maintainers; [ happysalada ];
|
||||
platforms = with platforms; all;
|
||||
};
|
||||
}
|
@ -26819,6 +26819,10 @@ with pkgs;
|
||||
|
||||
nu_scripts = callPackage ../shells/nushell/nu_scripts { };
|
||||
|
||||
nushellPlugins = callPackage ../shells/nushell/plugins {
|
||||
inherit (darwin.apple_sdk_11_0.frameworks) IOKit CoreFoundation;
|
||||
};
|
||||
|
||||
nettools = if stdenv.isLinux
|
||||
then callPackage ../os-specific/linux/net-tools { }
|
||||
else unixtools.nettools;
|
||||
|
Loading…
Reference in New Issue
Block a user