Skip to content

Commit

Permalink
libarchive: fix .la file
Browse files Browse the repository at this point in the history
  • Loading branch information
lucabrunox committed Jul 28, 2015
1 parent 7c30ce9 commit 9e0dcf3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/libraries/libarchive/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ stdenv.mkDerivation rec {
echo "#include <windows.h>" >> config.h
'' else null;

preFixup = ''
sed 's|-lcrypto|-L${openssl}/lib -lcrypto|' -i $out/lib/libarchive.la
'';

meta = {
description = "Multi-format archive and compression library";
longDescription = ''
Expand Down

2 comments on commit 9e0dcf3

@wkennington
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this break darwin evaluation?

@lucabrunox
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wkennington I have no way to test darwin... I will check when it fails on hydra. I guess an || true will be sufficient.

Please sign in to comment.