diff options
Diffstat (limited to 'nixpkgs/pkgs/development/tools/rust/rust-script/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/tools/rust/rust-script/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/tools/rust/rust-script/default.nix b/nixpkgs/pkgs/development/tools/rust/rust-script/default.nix new file mode 100644 index 000000000000..a70c67037ff2 --- /dev/null +++ b/nixpkgs/pkgs/development/tools/rust/rust-script/default.nix @@ -0,0 +1,26 @@ +{ 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 ]; + }; +} |