Skip to content

Commit

Permalink
Merge pull request #224924 from amjoseph-nixpkgs/pr/antiword/cross
Browse files Browse the repository at this point in the history
antiword: fix cross compilation
  • Loading branch information
Artturin committed Apr 7, 2023
2 parents e66c61a + d314be6 commit 65bfe06
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/applications/office/antiword/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 65bfe06

Please sign in to comment.