1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

Merge pull request #326373 from Rixxc/oqs-provider

oqs-provider: init at 0.6.1
This commit is contained in:
Aleksana 2024-08-03 20:42:58 +08:00 committed by GitHub
commit 88ad5634fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 65 additions and 0 deletions

View file

@ -17382,6 +17382,12 @@
githubId = 449990;
name = "Cedric Cellier";
};
rixxc = {
email = "a_kaiser+nixpkgs@posteo.de";
github = "Rixxc";
githubId = 30271441;
name = "Aaron Kaiser";
};
rizary = {
email = "andika@numtide.com";
github = "Rizary";

View file

@ -0,0 +1,59 @@
{ stdenv
, fetchFromGitHub
, cmake
, openssl
, liboqs
, lib
, nix-update-script
}:
stdenv.mkDerivation (finalAttrs: {
name = "oqs-provider";
version = "0.6.1";
src = fetchFromGitHub {
owner = "open-quantum-safe";
repo = "oqs-provider";
rev = finalAttrs.version;
hash = "sha256-AW0rOszXm9Hy55b2fQ2mpZulhXjYwvztwL6DIFgIzjA=";
};
nativeBuildInputs = [
cmake
];
buildInputs = [
openssl
liboqs
];
nativeCheckInputs = [ openssl.bin ];
configureFlags = [ "--with-modulesdir=$$out/lib/ossl-modules" ];
postPatch = ''
echo ${finalAttrs.version} > VERSION
'';
preInstall = ''
mkdir -p "$out"
for dir in "$out" "${openssl.out}"; do
mkdir -p .install/"$(dirname -- "$dir")"
ln -s "$out" ".install/$dir"
done
export DESTDIR="$(realpath .install)"
'';
enableParallelInstalling = false;
doCheck = true;
passthru.updateScript = nix-update-script { };
meta = with lib; {
homepage = "https://github.com/open-quantum-safe/oqs-provider";
description = "Open Quantum Safe provider for OpenSSL (3.x)";
license = licenses.mit;
maintainers = with maintainers; [ rixxc ];
platforms = platforms.all;
};
})