Commit d019e49c authored by Ryan Burns's avatar Ryan Burns
Browse files

howard-hinnant-date: fix pkg-config variable substitutions

parent 772d05f3
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -35,6 +35,15 @@ stdenv.mkDerivation rec {
    })
  ];

  # Tweaks to fix undefined variable substitutions
  # https://github.com/HowardHinnant/date/pull/538#pullrequestreview-1373268697
  postPatch = ''
    substituteInPlace date.pc.in \
      --replace '@CMAKE_INSTALL_LIB@' '@CMAKE_INSTALL_FULL_LIBDIR@' \
      --replace '@CMAKE_INSTALL_INCLUDE@' '@CMAKE_INSTALL_FULL_INCLUDEDIR@' \
      --replace '@PACKAGE_VERSION@' '${version}'
  '';

  nativeBuildInputs = [ cmake ];

  cmakeFlags = [