From 253688541aa3bd6033d68e83c22cfc3b353fe53e Mon Sep 17 00:00:00 2001 From: Valter Nazianzeno Date: Sat, 21 Sep 2024 20:54:21 +0000 Subject: [PATCH] emiluaPlugins.botan: init at 1.1.0 --- .../emilua-plugins/botan/default.nix | 62 +++++++++++++++++++ pkgs/top-level/emilua-plugins.nix | 3 + 2 files changed, 65 insertions(+) create mode 100644 pkgs/development/emilua-plugins/botan/default.nix diff --git a/pkgs/development/emilua-plugins/botan/default.nix b/pkgs/development/emilua-plugins/botan/default.nix new file mode 100644 index 000000000000..895e40028198 --- /dev/null +++ b/pkgs/development/emilua-plugins/botan/default.nix @@ -0,0 +1,62 @@ +{ + lib, + stdenv, + meson, + ninja, + fetchFromGitLab, + gperf, + gawk, + gitUpdater, + pkg-config, + boost, + luajit_openresty, + asciidoctor, + emilua, + liburing, + openssl, + fmt, + botan3, +}: + +stdenv.mkDerivation rec { + pname = "emilua-botan"; + version = "1.1.0"; + + src = fetchFromGitLab { + owner = "emilua"; + repo = "botan"; + rev = "v${version}"; + hash = "sha256-5/vcm6vNucBhl1Aki+OFNjAU7Hvc7OLAAH4CYchlBIY="; + }; + + buildInputs = [ + emilua + liburing + fmt + botan3 + luajit_openresty + openssl + boost + ]; + + nativeBuildInputs = [ + gperf + gawk + pkg-config + asciidoctor + meson + ninja + ]; + + passthru = { + updateScript = gitUpdater { rev-prefix = "v"; }; + }; + + meta = with lib; { + description = "Securely clears secrets from memory in Emilua"; + homepage = "https://emilua.org/"; + license = licenses.mit; + maintainers = with maintainers; [ manipuladordedados ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/emilua-plugins.nix b/pkgs/top-level/emilua-plugins.nix index eb220d4b3ab7..34c74f89c175 100644 --- a/pkgs/top-level/emilua-plugins.nix +++ b/pkgs/top-level/emilua-plugins.nix @@ -9,6 +9,9 @@ emilua: (lib.makeScope newScope (self: { inherit emilua; beast = self.callPackage ../development/emilua-plugins/beast { }; + botan = self.callPackage ../development/emilua-plugins/botan { + inherit (pkgs) botan3; + }; qt5 = self.callPackage ../development/emilua-plugins/qt5 { }; qt6 = self.callPackage ../development/emilua-plugins/qt6 { }; }))