mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
Merge pull request #199353 from dominikh/deskew
deskew: ensure libtiff can be found at runtime
This commit is contained in:
commit
9d20946e5f
@ -18,6 +18,12 @@ stdenv.mkDerivation rec {
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
patchShebangs ./Scripts
|
||||
|
||||
# Deskew insists on using dlopen to load libtiff, we insist it links against it.
|
||||
sed -i -e 's/{$DEFINE DYNAMIC_DLL_LOADING}//' Imaging/LibTiff/LibTiffDynLib.pas
|
||||
sed -i -e 's/if LibTiffDynLib\.LoadTiffLibrary then//' Imaging/LibTiff/ImagingTiffLib.pas
|
||||
# Make sure libtiff is in the RPATH, so that Nix can find and track the runtime dependency
|
||||
export NIX_LDFLAGS="$NIX_LDFLAGS -rpath ${lib.getLib libtiff}/lib"
|
||||
pushd Scripts && ./compile.sh && popd
|
||||
runHook postBuild
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user