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:
commit
88ad5634fd
|
@ -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";
|
||||
|
|
59
pkgs/by-name/oq/oqs-provider/package.nix
Normal file
59
pkgs/by-name/oq/oqs-provider/package.nix
Normal 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;
|
||||
};
|
||||
})
|
Loading…
Reference in a new issue