diff options
author | toonn <toonn@toonn.io> | 2022-03-09 13:15:08 +0100 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2022-03-21 14:28:13 +0100 |
commit | 9eb200121764dfa8a57acd906dfccf60d760e2fc (patch) | |
tree | b54b4e0eeb7347f74f4c05b9ba60d75223c3e74b /pkgs/applications/misc/mupdf | |
parent | e5e8e1d9263031e98e4e7c3ab73c409b2d5f82d1 (diff) |
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`.
Diffstat (limited to 'pkgs/applications/misc/mupdf')
-rw-r--r-- | pkgs/applications/misc/mupdf/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/applications/misc/mupdf/default.nix b/pkgs/applications/misc/mupdf/default.nix index 7bb9a89b8b395..cbe50cfdb3ce0 100644 --- a/pkgs/applications/misc/mupdf/default.nix +++ b/pkgs/applications/misc/mupdf/default.nix @@ -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 ''; |