diff options
author | Ruben Maher <r@rkm.id.au> | 2017-11-03 16:02:41 +1030 |
---|---|---|
committer | Ruben Maher <r@rkm.id.au> | 2017-11-03 16:28:25 +1030 |
commit | e82dc084d4d1c663c024fcc3c629d850c9cb5c3e (patch) | |
tree | 2f22a6bc40179a3974c956737c940b2a804cb14a | |
parent | 19d67e136810e592246823518a0d787cc0ef90bc (diff) |
lame: prevent build failure from using outdated symbol list
Before this change, trying to build LAME on Darwin would throw an error: Undefined symbols for architecture x86_64: "_lame_init_old", referenced from: -exported_symbol[s_list] command line option ld: symbol(s) not found for architecture x86_64 clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
-rw-r--r-- | pkgs/development/libraries/lame/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/libraries/lame/default.nix b/pkgs/development/libraries/lame/default.nix index 8ad7cb95a5d79..2f713cb59775b 100644 --- a/pkgs/development/libraries/lame/default.nix +++ b/pkgs/development/libraries/lame/default.nix @@ -55,6 +55,12 @@ stdenv.mkDerivation rec { (if debugSupport then "--enable-debug=alot" else "") ]; + preConfigure = '' + # Prevent a build failure for 3.100 due to using outdated symbol list + # https://hydrogenaud.io/index.php/topic,114777.msg946373.html#msg946373 + sed -i '/lame_init_old/d' include/libmp3lame.sym + ''; + meta = { description = "A high quality MPEG Audio Layer III (MP3) encoder"; homepage = http://lame.sourceforge.net; |