42 lines
906 B
Nix
42 lines
906 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
pkgconf,
|
|
libsodium,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "liboprf";
|
|
version = "0.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stef";
|
|
repo = "liboprf";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-auC6iVTMbLktKCPY8VgOdx2dMI2KDzNgtY1zyNXjM1A=";
|
|
};
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/src";
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [ pkgconf ];
|
|
|
|
buildInputs = [ libsodium ];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Library providing OPRF and Threshold OPRF based on libsodium";
|
|
homepage = "https://github.com/stef/liboprf";
|
|
changelog = "https://github.com/stef/liboprf/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.lgpl3Plus;
|
|
teams = [ lib.teams.ngi ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|