at master 34 lines 823 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5}: 6 7rustPlatform.buildRustPackage rec { 8 pname = "rust-script"; 9 version = "0.36.0"; 10 11 src = fetchFromGitHub { 12 owner = "fornwall"; 13 repo = "rust-script"; 14 rev = version; 15 sha256 = "sha256-Bb8ULD2MmZiSW/Tx5vAAHv95OMJ0EdWgR+NFhBkTlDU="; 16 }; 17 18 cargoHash = "sha256-kxnylNZ8FsaR2S1o/p7qtlaXsBLDNv2PsFye0rcf/+A="; 19 20 # tests require network access 21 doCheck = false; 22 23 meta = { 24 description = "Run Rust files and expressions as scripts without any setup or compilation step"; 25 mainProgram = "rust-script"; 26 homepage = "https://rust-script.org"; 27 changelog = "https://github.com/fornwall/rust-script/releases/tag/${version}"; 28 license = with lib.licenses; [ 29 mit # or 30 asl20 31 ]; 32 maintainers = with lib.maintainers; [ figsoda ]; 33 }; 34}