From 8d405037f941abaaa2f43b3de1d442bea1b807c6 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 7 Sep 2022 19:09:45 -0700 Subject: feat(tools/sendsms): build sendsms with nix via naersk I can now run `nix build .#tools.sendsms` to build the tool, or get it deployed on a machine. Change-Id: I82c733be466adb229d98414fd1229e05f355dd7d --- tools/sendsms/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tools/sendsms/default.nix (limited to 'tools/sendsms/default.nix') diff --git a/tools/sendsms/default.nix b/tools/sendsms/default.nix new file mode 100644 index 0000000..6c9b79c --- /dev/null +++ b/tools/sendsms/default.nix @@ -0,0 +1,15 @@ +{ pkgs, naersk, ... }: + +naersk.lib."${pkgs.system}".buildPackage { + src = builtins.filterSource + (path: type: + type != "directory" || builtins.baseNameOf path != "target") + ./.; + + nativeBuildInputs = with pkgs; [ pkg-config ]; + buildInputs = with pkgs; [ openssl ]; + + remapPathPrefix = true; + doCheck = true; + copyLibs = true; +} -- cgit v1.2.3