94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
26 lines
767 B
Nix
26 lines
767 B
Nix
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "rust-script";
|
|
version = "0.27.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fornwall";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-noyef+G05749WqqqCH6qyVorCR4DRZTl38ftkU66IBQ=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-L5uqckG+NbatpBTejZw/Xk+OGZqsJgzHRwCTh1FJHVw=";
|
|
|
|
# tests require network access
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Run Rust files and expressions as scripts without any setup or compilation step";
|
|
homepage = "https://rust-script.org";
|
|
changelog = "https://github.com/fornwall/rust-script/releases/tag/${version}";
|
|
license = with licenses; [ mit /* or */ asl20 ];
|
|
maintainers = with maintainers; [ figsoda ];
|
|
};
|
|
}
|