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-21 14:28:13 +01:00
parent e5e8e1d926
commit 9eb2001217
+2
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
'';