about summary refs log tree commit diff
path: root/pkgs/shells/nushell/plugins/query.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/shells/nushell/plugins/query.nix')
-rw-r--r--pkgs/shells/nushell/plugins/query.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/shells/nushell/plugins/query.nix b/pkgs/shells/nushell/plugins/query.nix
index 85520b32e0e3..bff93ef03cea 100644
--- a/pkgs/shells/nushell/plugins/query.nix
+++ b/pkgs/shells/nushell/plugins/query.nix
@@ -11,10 +11,10 @@
   curl,
 }:
 
-rustPlatform.buildRustPackage {
+rustPlatform.buildRustPackage rec {
   pname = "nushell_plugin_query";
   inherit (nushell) version src;
-  cargoHash = "sha256-7E4CCs4xyNGwjk6B2CwIFf1x0o5uNQArZpyxXEKLXMI=";
+  cargoHash = "sha256-4oSmt92nMIaSV7hLEBv5GIDYVmtT96O4qktO8ovdcBQ=";
 
   nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ];
   buildInputs =
@@ -22,7 +22,7 @@ rustPlatform.buildRustPackage {
       openssl
       curl
     ]
-    ++ lib.optionals stdenv.isDarwin [
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [
       IOKit
       CoreFoundation
     ];
@@ -37,15 +37,15 @@ rustPlatform.buildRustPackage {
     extraArgs = [ "--version=skip" ];
   };
 
-  meta = with lib; {
+  meta = {
     description = "Nushell plugin to query JSON, XML, and various web data";
     mainProgram = "nu_plugin_query";
     homepage = "https://github.com/nushell/nushell/tree/${version}/crates/nu_plugin_query";
-    license = licenses.mit;
-    maintainers = with maintainers; [
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [
       happysalada
       aidalgol
     ];
-    platforms = with platforms; all;
+    platforms = lib.platforms.all;
   };
 }