Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, lib 3, rustPlatform 4, nushell 5, IOKit 6, CoreFoundation 7}: 8 9rustPlatform.buildRustPackage { 10 pname = "nushell_plugin_query"; 11 version = "0.80.0"; 12 13 src = nushell.src; 14 15 cargoHash = "sha256-k4UjHNf5L9RmYuB66gcoyCmhd1MvtAxTOxRh24sv0sk="; 16 17 buildInputs = lib.optionals stdenv.isDarwin [ IOKit CoreFoundation ]; 18 19 cargoBuildFlags = [ "--package nu_plugin_query" ]; 20 21 # compilation fails with a missing symbol 22 doCheck = false; 23 24 meta = with lib; { 25 description = "A Nushell plugin to query JSON, XML, and various web data"; 26 homepage = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_query"; 27 license = licenses.mpl20; 28 maintainers = with maintainers; [ happysalada ]; 29 platforms = with platforms; all; 30 }; 31}