Unverified Commit 1b62c5cc authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

Merge pull request #310224 from Sigmanificient/liboqs-0.10.0

liboqs: 0.8.0 -> 0.10.0, migrate to by name
parents 83db4d81 e7694d9b
Loading
Loading
Loading
Loading
+19 −7
Original line number Diff line number Diff line
@@ -4,21 +4,31 @@
  fetchFromGitHub,
  cmake,
  openssl,
  fetchpatch,
  enableStatic ? stdenv.hostPlatform.isStatic,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "liboqs";
  version = "0.8.0";
  version = "0.10.0";

  src = fetchFromGitHub {
    owner = "open-quantum-safe";
    repo = pname;
    rev = version;
    sha256 = "sha256-h3mXoGRYgPg0wKQ1u6uFP7wlEUMQd5uIBt4Hr7vjNtA=";
    repo = "liboqs";
    rev = finalAttrs.version;
    hash = "sha256-BFDa5NUr02lFPcT4Hnb2rjGAi+2cXvh1SHLfqX/zLlI=";
  };

  patches = [ ./fix-openssl-detection.patch ];
  patches = [
    ./fix-openssl-detection.patch
    # liboqs.pc.in path were modified in this commit
    # causing malformed path with double slashes.
    (fetchpatch {
      url = "https://github.com/open-quantum-safe/liboqs/commit/f0e6b8646c5eae0e8052d029079ed3efa498f220.patch";
      hash = "sha256-tDfWzcDnFGikzq2ADEWiUgcUt1NSLWQ9/HVWA3rKuzc=";
      revert = true;
    })
  ];

  nativeBuildInputs = [ cmake ];
  buildInputs = [ openssl ];
@@ -31,6 +41,8 @@ stdenv.mkDerivation rec {

  dontFixCmake = true; # fix CMake file will give an error

  outputs = [ "out" "dev" ];

  meta = with lib; {
    description = "C library for prototyping and experimenting with quantum-resistant cryptography";
    homepage = "https://openquantumsafe.org";
@@ -38,4 +50,4 @@ stdenv.mkDerivation rec {
    platforms = platforms.all;
    maintainers = [ maintainers.sigmanificient ];
  };
}
})
+0 −2
Original line number Diff line number Diff line
@@ -22671,8 +22671,6 @@ with pkgs;
  libopusenc = callPackage ../development/libraries/libopusenc { };
  liboqs = callPackage ../development/libraries/liboqs { };
  libosinfo = callPackage ../development/libraries/libosinfo { };
  libosip = callPackage ../development/libraries/osip { };