2023-07-27 13:58:10 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchCrate
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "rustycli";
|
|
|
|
version = "0.1.1";
|
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-4Txw6Cmwwgu7K8VIVoX9GR76VUqAEw6uYptmczbjqg0=";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoHash = "sha256-WU3lgGJH6qVDI1Un3HBqg0edqiP5sobTsAIXdnjeNTU=";
|
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
|
|
|
|
|
|
|
# some examples fail to compile
|
|
|
|
cargoTestFlags = [ "--tests" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Access the rust playground right in terminal";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "rustycli";
|
2023-07-27 13:58:10 +00:00
|
|
|
homepage = "https://github.com/pwnwriter/rustycli";
|
|
|
|
changelog = "https://github.com/pwnwriter/rustycli/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|