From d78070d130c32227a2788591d3efd321da702658 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 19 Nov 2022 18:48:12 -0800 Subject: feat: a CLI to send sms via twilio's API I want to get an SMS when some of my machines are rebooted. This tool let me do just that. The CLI takes as argument the path to a configuration file that contains credentials to the API. It also has a number of sub commands, and each sub command is associated with a specific action. For each action, a section in the configuration file is expected. The two actions currently supported are: - `reboot` - `hello` `hello` is a simple one used for testing, it sends "hello world". `reboot` is used to create a message that contains the host's name and the IP address of the network interface specified in the configuration file. --- flake.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 5b453f2..2f7a40a 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,5 @@ { - description = "A CLI to send SMS with pre-determined messages SMS with pre-determined messa SMS with pre-determine."; + description = "A CLI to send SMS with pre-determined messages."; inputs = { flake-utils.url = "github:numtide/flake-utils"; @@ -55,10 +55,14 @@ cargoArtifacts = craneLib.buildDepsOnly { inherit src; + nativeBuildInputs = with pkgs; [ pkg-config ]; + buildInputs = with pkgs; [ openssl ]; }; my-crate = craneLib.buildPackage { inherit cargoArtifacts src; + nativeBuildInputs = with pkgs; [ pkg-config ]; + buildInputs = with pkgs; [ openssl ]; }; in { @@ -91,8 +95,10 @@ rust-toolchain cargo-deny rust-analyzer + pkg-config ]; + buildInputs = with pkgs; [ openssl ]; inherit (self.checks.${system}.pre-commit) shellHook; }; }) -- cgit v1.2.3