Commit 990a5022 authored by Phillip Seeber's avatar Phillip Seeber
Browse files

libxc: use upstream patch for cmake compatibility

parent ed985782
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitLab,
  fetchpatch,
  cmake,
  gfortran,
  perl,
@@ -26,6 +27,14 @@ stdenv.mkDerivation rec {
    hash = versionHashes."${version}";
  };

  patches = [
    # Fix build with newer CMake versions
    (fetchpatch {
      url = "https://gitlab.com/libxc/libxc/-/commit/450202adb8a3d698841dca853f2999b1befd932e.patch";
      sha256 = "sha256-XDt7+TzszSu+X6/PS+T8Q9BP76+bAXC9FzkA6ueo/OA=";
    })
  ];

  # Timeout increase has already been included upstream in master.
  # Check upon updates if this can be removed.
  postPatch = ''
@@ -49,7 +58,6 @@ stdenv.mkDerivation rec {
  '';

  cmakeFlags = [
    "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    "-DENABLE_FORTRAN=ON"
    "-DBUILD_SHARED_LIBS=ON"
    "-DENABLE_XHOST=OFF"