depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-play/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

29 lines
725 B
Nix

{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "cargo-play";
version = "0.5.1";
src = fetchFromGitHub {
owner = "fanzeyi";
repo = pname;
rev = version;
sha256 = "sha256-Z5zcLQYfQeGybsnt2U+4Z+peRHxNPbDriPMKWhJ+PeA=";
};
cargoHash = "sha256-I+keVi0fxUVttMHOGJQWVfIpHEQu/9aTbERa3qiHmnQ=";
# these tests require internet access
checkFlags = [
"--skip=dtoa_test"
"--skip=infer_override"
];
meta = with lib; {
description = "Run your rust code without setting up cargo";
mainProgram = "cargo-play";
homepage = "https://github.com/fanzeyi/cargo-play";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}