emiluaPlugins: introduce botan and secp256k1 (#342594)

This commit is contained in:
Sandro 2024-09-22 14:11:29 +02:00 committed by GitHub
commit 9c711566cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 130 additions and 0 deletions

View File

@ -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;
};
}

View File

@ -0,0 +1,62 @@
{
lib,
stdenv,
meson,
ninja,
fetchFromGitLab,
gperf,
gawk,
gitUpdater,
pkg-config,
boost,
luajit_openresty,
asciidoctor,
emilua,
liburing,
openssl,
fmt,
secp256k1,
}:
stdenv.mkDerivation rec {
pname = "emilua-secp256k1";
version = "0.5.0";
src = fetchFromGitLab {
owner = "emilua";
repo = "secp256k1";
rev = "v${version}";
hash = "sha256-xbyDKxuU03U0k4YSD7Sahw2Z4ZSpQHwrpWcSN0F5CCw=";
};
buildInputs = [
emilua
liburing
fmt
secp256k1
luajit_openresty
openssl
boost
];
nativeBuildInputs = [
gperf
gawk
pkg-config
asciidoctor
meson
ninja
];
passthru = {
updateScript = gitUpdater { rev-prefix = "v"; };
};
meta = with lib; {
description = "Emilua bindings to libsecp256k1";
homepage = "https://emilua.org/";
license = licenses.mit;
maintainers = with maintainers; [ manipuladordedados ];
platforms = platforms.linux;
};
}

View File

@ -9,6 +9,12 @@ 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 { };
secp256k1 = self.callPackage ../development/emilua-plugins/secp256k1 {
inherit (pkgs) secp256k1;
};
}))