Merge pull request #128997 from OPNA2608/fix/expat-cmake-files/21.11
expat: Fix cmake config files
This commit is contained in:
commit
29aeda33b0
@ -27,6 +27,13 @@ stdenv.mkDerivation rec {
|
||||
patchShebangs ./configure ./run.sh ./test-driver-wrapper.sh
|
||||
'';
|
||||
|
||||
# CMake files incorrectly calculate library path from dev prefix
|
||||
# https://github.com/libexpat/libexpat/issues/501
|
||||
postFixup = ''
|
||||
substituteInPlace $dev/lib/cmake/expat-${version}/expat-noconfig.cmake \
|
||||
--replace "$"'{_IMPORT_PREFIX}' $out
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://libexpat.github.io/";
|
||||
description = "A stream-oriented XML parser library written in C";
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
stdenv, lib, fetchFromGitHub, symlinkJoin,
|
||||
stdenv, lib, fetchFromGitHub,
|
||||
cmake, expat, libyamlcpp, ilmbase, pystring, # Base dependencies
|
||||
|
||||
glew, freeglut, # Only required on Linux
|
||||
@ -25,8 +25,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "194j9jp5c8ws0fryiz936wyinphnpzwpqnzvw9ryx6rbiwrba487";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake (symlinkJoin { name = "expat"; paths = [ expat.out expat.dev ]; }) ];
|
||||
buildInputs = [ expat.out libyamlcpp ilmbase pystring ]
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ expat libyamlcpp ilmbase pystring ]
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [ glew freeglut ]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [ Carbon GLUT Cocoa ]
|
||||
++ lib.optionals pythonBindings [ python3Packages.python python3Packages.pybind11 ]
|
||||
|
Loading…
Reference in New Issue
Block a user