rust-script: add nix-update-script

This commit is contained in:
Petr Portnov
2026-03-05 18:46:54 +03:00
parent 292520970f
commit 27f76f9ce8
+7
View File
@@ -2,6 +2,8 @@
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@@ -20,6 +22,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
# tests require network access
doCheck = false;
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Run Rust files and expressions as scripts without any setup or compilation step";
mainProgram = "rust-script";