Otok public index

apotocki/libsodium

apotocki/libsodium 1.0.22 (r1, linux)

Library
libsodium
Variant
linux, target linux
Channel
stable
Published
2026-11-10
Recipe source
https://github.com/otok-dev/recipes
7387b6ee8dee98c91c576f3e39051559e5e83d83 in recipes/libsodium/1.0/linux/
Recipe SHA-256
72129e5fd1dd063088efb160df4a827d4bd2e9c12dcb6945519809fbdaf2084c

Recipe files changed

Inputs

source.mirrors["https://github.com/jedisct1/libsodium/releases/download/1.0.22-RELEASE/libsodium-1.0.22.tar.gz"]
source.sha256adbdd8f16149e81ac6078a03aca6fc03b592b89ef7b5ed83841c086191be3349
source.urlhttps://download.libsodium.org/libsodium/releases/libsodium-1.0.22.tar.gz

Platforms

linux

Toolchains

Recipe files

build.lua 501 bytes · raw
-- libsodium's own configure and make, the library only. What it installs: libsodium.a, or libsodium.so with its links.
function build(slice, options, deps)
    -- --disable-pie: position-independent executables are for libsodium's tests, not the library
    otok.autotools{ args = { "--disable-pie" } }
    local p = slice.prefix
    local lib = p .. (slice.linkage == "static" and "/lib/libsodium.a" or "/lib/libsodium.so")
    return { libraries = { sodium = lib }, headers = p .. "/include" }
end
recipe.toml 1298 bytes · raw
# The otok recipe of libsodium (https://github.com/apotocki/otok): libsodium for Linux, from the release archive, with
# its own configure; static or dynamic.
[recipe]
api = 1
library = "libsodium"
name = "libsodium"
version = "1.0.22"
revision = 1
license = "ISC"
license-files = ["LICENSE"]
homepage = "https://libsodium.org"
documentation = "https://doc.libsodium.org"
description = "Sodium, a modern, easy-to-use library for encryption, decryption, signatures, password hashing and more."
keywords = ["crypto", "cryptography", "encryption", "signatures", "nacl"]
linkage = ["static", "dynamic"]

# The archive of the release, signed with minisign by libsodium's key RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3
# (libsodium-1.0.22.tar.gz.minisig); the same file is an asset of the release on GitHub.
[source]
url = "https://download.libsodium.org/libsodium/releases/libsodium-1.0.22.tar.gz"
sha256 = "adbdd8f16149e81ac6078a03aca6fc03b592b89ef7b5ed83841c086191be3349"
mirrors = ["https://github.com/jedisct1/libsodium/releases/download/1.0.22-RELEASE/libsodium-1.0.22.tar.gz"]

[platforms]
supported = ["linux"]
build-on = ["linux/gcc", "linux/clang"]

[toolchains]
make = { version = ">= 3.81", default-recipe = "apotocki/make" }

[[product]]
name = "Sodium"
libraries = ["sodium"]