Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oqs-provider: init at 0.6.1 #326373

Merged
merged 2 commits into from
Aug 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17163,6 +17163,12 @@
githubId = 449990;
name = "Cedric Cellier";
};
rixxc = {
sikmir marked this conversation as resolved.
Show resolved Hide resolved
email = "a_kaiser+nixpkgs@posteo.de";
github = "Rixxc";
githubId = 30271441;
name = "Aaron Kaiser";
};
rizary = {
email = "andika@numtide.com";
github = "Rizary";
Expand Down
59 changes: 59 additions & 0 deletions pkgs/by-name/oq/oqs-provider/package.nix
Original file line number Diff line number Diff line change
@@ -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;
};
})