2025-06-06 21:58:04 +02:00

31 lines
749 B
Nix

{
lib,
rustPlatform,
fetchCrate,
}:
rustPlatform.buildRustPackage rec {
pname = "rustycli";
version = "0.1.1";
src = fetchCrate {
inherit pname version;
hash = "sha256-4Txw6Cmwwgu7K8VIVoX9GR76VUqAEw6uYptmczbjqg0=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-QjkUiPwjG25NsvAXM3jqQVtJzYiXhzVqFaDN1b7DXDE=";
# some examples fail to compile
cargoTestFlags = [ "--tests" ];
meta = {
description = "Access the rust playground right in terminal";
mainProgram = "rustycli";
homepage = "https://github.com/pwnwriter/rustycli";
changelog = "https://github.com/pwnwriter/rustycli/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ figsoda ];
};
}