3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #213588 from candyc1oud/liboqs

liboqs: init at 0.7.2
This commit is contained in:
Nick Cao 2023-01-31 17:15:22 +08:00 committed by GitHub
commit 55a08ec73e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, openssl
, enableStatic ? stdenv.hostPlatform.isStatic
}:
stdenv.mkDerivation rec {
pname = "liboqs";
version = "0.7.2";
src = fetchFromGitHub {
owner = "open-quantum-safe";
repo = pname;
rev = version;
sha256 = "sha256-cwrTHj/WFDZ9Ez2FhjpRhEx9aC5xBnh7HR/9T+zUpZc=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ openssl ];
cmakeFlags = [
"-DBUILD_SHARED_LIBS=${if enableStatic then "OFF" else "ON"}"
"-DOQS_DIST_BUILD=ON"
"-DOQS_BUILD_ONLY_LIB=ON"
];
dontFixCmake = true; # fix CMake file will give an error
meta = with lib; {
description = "C library for prototyping and experimenting with quantum-resistant cryptography";
homepage = "https://openquantumsafe.org";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ candyc1oud ];
};
}

View file

@ -21502,6 +21502,8 @@ with pkgs;
libopusenc = callPackage ../development/libraries/libopusenc { };
liboqs = callPackage ../development/libraries/liboqs { };
libosinfo = callPackage ../development/libraries/libosinfo { };
libosip = callPackage ../development/libraries/osip {};