mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-07 14:00:59 +03:00
exiv2: fix CMake export paths
This commit is contained in:
parent
0143a1fad0
commit
f1a58aba15
@ -98,7 +98,7 @@ stdenv.mkDerivation rec {
|
|||||||
(cd ../tests/ && python3 runner.py)
|
(cd ../tests/ && python3 runner.py)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# With cmake we have to enable samples or there won't be
|
# With CMake we have to enable samples or there won't be
|
||||||
# a tests target. This removes them.
|
# a tests target. This removes them.
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
( cd "$out/bin"
|
( cd "$out/bin"
|
||||||
@ -108,6 +108,14 @@ stdenv.mkDerivation rec {
|
|||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Fix CMake export paths.
|
||||||
|
postFixup = ''
|
||||||
|
sed -i "$dev/lib/cmake/exiv2/exiv2Config.cmake" \
|
||||||
|
-e "/INTERFACE_INCLUDE_DIRECTORIES/ s@\''${_IMPORT_PREFIX}@$dev@" \
|
||||||
|
-e "/Compute the installation prefix/ a set(_IMPORT_PREFIX \"$out\")" \
|
||||||
|
-e "/^get_filename_component(_IMPORT_PREFIX/ d"
|
||||||
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user