diff options
| author | Franck Cuny <franck@fcuny.net> | 2022-11-19 18:48:12 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2022-11-19 19:01:01 -0800 |
| commit | d78070d130c32227a2788591d3efd321da702658 (patch) | |
| tree | 55e34a15a8ff3b53714c55974bd738e48a5bbcb9 /flake.nix | |
| parent | meta: ignore artifact created by `nix build` (diff) | |
| download | sendsms-d78070d130c32227a2788591d3efd321da702658.tar.gz | |
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.
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; }; }) |
