diff options
author | taku0 <mxxouy6x3m_github@tatapa.org> | 2016-04-08 22:33:14 +0900 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-04-08 16:55:51 +0300 |
commit | 28232c374687d9ab401ac55e3061bc067d120969 (patch) | |
tree | cd5ac93c0abfe38f193db542e030176f4ef41774 /pkgs/applications/networking/browsers | |
parent | 36b5fd8d4d66a5ce974127f374aebc77fc19da6e (diff) | |
download | nixlib-28232c374687d9ab401ac55e3061bc067d120969.tar nixlib-28232c374687d9ab401ac55e3061bc067d120969.tar.gz nixlib-28232c374687d9ab401ac55e3061bc067d120969.tar.bz2 nixlib-28232c374687d9ab401ac55e3061bc067d120969.tar.lz nixlib-28232c374687d9ab401ac55e3061bc067d120969.tar.xz nixlib-28232c374687d9ab401ac55e3061bc067d120969.tar.zst nixlib-28232c374687d9ab401ac55e3061bc067d120969.zip |
flashplayer: fix build on 32-bit platform
Diffstat (limited to 'pkgs/applications/networking/browsers')
-rw-r--r-- | pkgs/applications/networking/browsers/mozilla-plugins/flashplayer-11/default.nix | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/pkgs/applications/networking/browsers/mozilla-plugins/flashplayer-11/default.nix b/pkgs/applications/networking/browsers/mozilla-plugins/flashplayer-11/default.nix index 129a71126096..b624bfe65192 100644 --- a/pkgs/applications/networking/browsers/mozilla-plugins/flashplayer-11/default.nix +++ b/pkgs/applications/networking/browsers/mozilla-plugins/flashplayer-11/default.nix @@ -73,8 +73,7 @@ stdenv.mkDerivation rec { tar -xvzf *${suffix}.tar.gz ${ lib.optionalString is-i686 '' - tar -xvzf *_sa.*.tar.gz - tar -xvzf *_sa_debug.*.tar.gz + tar -xvzf *_sa[_.]*.tar.gz ''} popd @@ -87,7 +86,7 @@ stdenv.mkDerivation rec { dontStrip = true; dontPatchELF = true; - outputs = [ "out" ] ++ lib.optionals is-i686 ["sa" "saDbg" ]; + outputs = [ "out" ] ++ lib.optional (is-i686 && !debug) "sa" ++ lib.optional (is-i686 && debug) "saDbg"; installPhase = '' mkdir -p $out/lib/mozilla/plugins @@ -95,22 +94,25 @@ stdenv.mkDerivation rec { patchelf --set-rpath "$rpath" $out/lib/mozilla/plugins/libflashplayer.so ${ lib.optionalString is-i686 '' - mkdir -p $sa/bin - cp flashplayer $sa/bin/ - - patchelf \ - --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ - --set-rpath "$rpath" \ - $sa/bin/flashplayer - - - mkdir -p $saDbg/bin - cp flashplayerdebugger $saDbg/bin/ - - patchelf \ - --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ - --set-rpath "$rpath" \ - $saDbg/bin/flashplayerdebugger + ${ lib.optionalString (!debug) '' + mkdir -p $sa/bin + cp flashplayer $sa/bin/ + + patchelf \ + --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ + --set-rpath "$rpath" \ + $sa/bin/flashplayer + ''} + + ${ lib.optionalString debug '' + mkdir -p $saDbg/bin + cp flashplayerdebugger $saDbg/bin/ + + patchelf \ + --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ + --set-rpath "$rpath" \ + $saDbg/bin/flashplayerdebugger + ''} ''} ''; |