diff options
| author | Adam Joseph <adam@westernsemico.com> | 2023-04-05 18:53:39 -0700 |
|---|---|---|
| committer | Adam Joseph <adam@westernsemico.com> | 2023-04-05 18:53:48 -0700 |
| commit | d314be66d67ecded018119593bef0a3e4d0f86cd (patch) | |
| tree | e9c99ecb5780a42ecc381ffe426837d2e1f59f97 | |
| parent | Merge pull request #223216 from wineee/qtcreator (diff) | |
| download | nixpkgs-d314be66d67ecded018119593bef0a3e4d0f86cd.tar.gz | |
antiword: fix cross compilation
| -rw-r--r-- | pkgs/applications/office/antiword/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/office/antiword/default.nix b/pkgs/applications/office/antiword/default.nix index 5da7d84905bb..09e387cb0554 100644 --- a/pkgs/applications/office/antiword/default.nix +++ b/pkgs/applications/office/antiword/default.nix @@ -11,11 +11,15 @@ stdenv.mkDerivation rec{ prePatch = '' sed -i -e "s|/usr/local/bin|$out/bin|g" -e "s|/usr/share|$out/share|g" Makefile antiword.h - substituteInPlace Makefile --replace "gcc" "cc" + substituteInPlace Makefile --replace "gcc" '$(CC)' ''; patches = [ ./10_fix_buffer_overflow_wordole_c_CVE-2014-8123.patch ]; + makeFlags = [ + "CC=${stdenv.cc.targetPrefix}cc" + ]; + installTargets = [ "global_install" ]; meta = { |
