d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
26 lines
767 B
Nix
26 lines
767 B
Nix
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "rust-script";
|
|
version = "0.31.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fornwall";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-W0+UaP0aROfGuvWhPcq6QYJZ6XgUAp4XARTzr3Pch/o=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-dNtAee7lyrlamZEtkrrGgs25xW74UixI4NdeD35wzJU=";
|
|
|
|
# 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 ];
|
|
};
|
|
}
|