Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.11 34 lines 986 B view raw
1{ stdenv 2, lib 3, rustPlatform 4, nushell 5, IOKit 6, CoreFoundation 7, nix-update-script 8}: 9 10rustPlatform.buildRustPackage { 11 pname = "nushell_plugin_query"; 12 inherit (nushell) version src; 13 cargoHash = "sha256-seqr4FZHg/f/8iMwSurJRKr41pUbKKti6H2z/JfYkuU="; 14 15 buildInputs = lib.optionals stdenv.isDarwin [ IOKit CoreFoundation ]; 16 cargoBuildFlags = [ "--package nu_plugin_query" ]; 17 18 checkPhase = '' 19 cargo test --manifest-path crates/nu_plugin_query/Cargo.toml 20 ''; 21 22 passthru.updateScript = nix-update-script { 23 # Skip the version check and only check the hash because we inherit version from nushell. 24 extraArgs = [ "--version=skip" ]; 25 }; 26 27 meta = with lib; { 28 description = "A Nushell plugin to query JSON, XML, and various web data"; 29 homepage = "https://github.com/nushell/nushell/tree/${version}/crates/nu_plugin_query"; 30 license = licenses.mpl20; 31 maintainers = with maintainers; [ happysalada aidalgol ]; 32 platforms = with platforms; all; 33 }; 34}