nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, rustPlatform, fetchFromGitHub }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "cargo-play";
5 version = "0.5.1";
6
7 src = fetchFromGitHub {
8 owner = "fanzeyi";
9 repo = pname;
10 rev = version;
11 sha256 = "sha256-Z5zcLQYfQeGybsnt2U+4Z+peRHxNPbDriPMKWhJ+PeA=";
12 };
13
14 cargoSha256 = "sha256-I+keVi0fxUVttMHOGJQWVfIpHEQu/9aTbERa3qiHmnQ=";
15
16 # these tests require internet access
17 checkFlags = [
18 "--skip=dtoa_test"
19 "--skip=infer_override"
20 ];
21
22 meta = with lib; {
23 description = "Run your rust code without setting up cargo";
24 homepage = "https://github.com/fanzeyi/cargo-play";
25 license = licenses.mit;
26 maintainers = with maintainers; [ figsoda ];
27 };
28}