mupdf: Patch out which

This popped up while fixing up the expression for Darwin. Apparently
`which` isn't on the PATH there for Nix builds. May be considered an
impurity on Linux. `command -v` is the POSIX way to do basically the
same thing so I just patched out `which`.
This commit is contained in:
toonn 2022-03-09 13:15:08 +01:00
parent e5e8e1d926
commit 9eb2001217
No known key found for this signature in database
GPG key ID: 44FF902A66DF4576

View file

@ -39,6 +39,8 @@ stdenv.mkDerivation rec {
sha256 = "1vfyhlqq1a0k0drcggly4bgsjasmf6lmpfbdi5xcrwdbzkagrbr1";
};
patches = ./0001-Use-command-v-in-favor-of-which.patch;
postPatch = ''
sed -i "s/__OPENJPEG__VERSION__/${openJpegVersion}/" source/fitz/load-jpx.c
'';