nixpkgs/pkgs/development/tools/rust/cargo-play/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

30 lines
727 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=";
};
cargoSha256 = "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 ];
};
}