From a27547e27a25323d73258d1b4eb4a77bc0ede49a Mon Sep 17 00:00:00 2001 From: figsoda Date: Thu, 27 Jul 2023 09:58:10 -0400 Subject: [PATCH] rustycli: init at 0.1.1 https://github.com/pwnwriter/rustycli --- .../tools/rust/rustycli/default.nix | 33 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/tools/rust/rustycli/default.nix diff --git a/pkgs/development/tools/rust/rustycli/default.nix b/pkgs/development/tools/rust/rustycli/default.nix new file mode 100644 index 000000000000..451ae2f95611 --- /dev/null +++ b/pkgs/development/tools/rust/rustycli/default.nix @@ -0,0 +1,33 @@ +{ 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.isDarwin [ + darwin.apple_sdk.frameworks.Security + ]; + + # some examples fail to compile + cargoTestFlags = [ "--tests" ]; + + meta = with lib; { + description = "Access the rust playground right in terminal"; + homepage = "https://github.com/pwnwriter/rustycli"; + changelog = "https://github.com/pwnwriter/rustycli/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ figsoda ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b8ae9ba72535..6e73229ad30e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17151,6 +17151,7 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Security; }; rusty-man = callPackage ../development/tools/rust/rusty-man { }; + rustycli = callPackage ../development/tools/rust/rustycli { }; typeshare = callPackage ../development/tools/rust/typeshare { }; sagittarius-scheme = callPackage ../development/compilers/sagittarius-scheme { };