grafana-sms-alert/default.nix
Daniel Barlow 3bb143b6f4 SMS sending works for basic chars
won't send { } [ ]: hypothesis, because these characters can't
be represented in one byte of the GSM charset
2022-09-15 22:09:25 +01:00

25 lines
645 B
Nix

with import <nixpkgs> {};
let lua = lua5_3.withPackages (ps: [
ps.dkjson
ps.lpeg
ps.http
ps.luaposix
]);
inherit makeWrapper;
fennel = pkgs.fennel.override { inherit lua; };
in stdenv.mkDerivation {
pname = "grafana-sms-alert";
version = "0.1";
src = ./.;
makeFlags = [ "TARGET=${placeholder "out"}" ];
postInstall = ''
lua_path="`lua -e 'print(package.path)'`"
lua_cpath="`lua -e 'print(package.cpath)'`"
makeWrapper ${fennel}/bin/fennel $out/bin/grafana-sms-alert \
--add-flags "$out/lib/main.fnl"
'';
buildInputs = [lua fennel];
nativeBuildInputs = [ makeWrapper ];
}