Skip to content

Commit

Permalink
Merge pull request NixOS#245744 from figsoda/rustycli
Browse files Browse the repository at this point in the history
  • Loading branch information
figsoda authored Jul 29, 2023
2 parents 4d8feb8 + a27547e commit 6a1255d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pkgs/development/tools/rust/rustycli/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
1 change: 1 addition & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17061,6 +17061,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 { };
Expand Down

0 comments on commit 6a1255d

Please sign in to comment.