0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-15 22:50:42 +03:00
nixpkgs/pkgs/development/tools/rust/rust-script/default.nix

26 lines
690 B
Nix
Raw Normal View History

2021-09-21 12:50:46 -04:00
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "rust-script";
2021-12-17 15:39:44 -05:00
version = "0.19.0";
2021-09-21 12:50:46 -04:00
src = fetchFromGitHub {
owner = "fornwall";
repo = pname;
rev = "v${version}";
2021-12-17 15:39:44 -05:00
sha256 = "sha256-CYeTt6PzVGu62/GJB+gUlOXG2bs4RV0LWECF4CN3Uic=";
2021-09-21 12:50:46 -04:00
};
2021-12-17 15:39:44 -05:00
cargoSha256 = "sha256-IUzaVeOTBAOo/jkDytk6qc7VatKX75l1yZy99iSIqyE=";
2021-09-21 12:50:46 -04:00
2021-11-09 18:09:54 -05:00
# tests require network access
2021-09-21 12:50:46 -04:00
doCheck = false;
meta = with lib; {
description = "Run Rust files and expressions as scripts without any setup or compilation step";
homepage = "https://rust-script.org";
license = with licenses; [ mit /* or */ asl20 ];
maintainers = with maintainers; [ figsoda ];
};
}