flashplayer-standalone: init at 11.2.202.559
This commit is contained in:
parent
d0e3cca04e
commit
d9066cd36f
@ -1,4 +1,5 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, zlib
|
, zlib
|
||||||
, alsaLib
|
, alsaLib
|
||||||
@ -54,6 +55,7 @@ let
|
|||||||
else "_linux.i386"
|
else "_linux.i386"
|
||||||
else throw "Flash Player is not supported on this platform";
|
else throw "Flash Player is not supported on this platform";
|
||||||
|
|
||||||
|
is-i686 = (stdenv.system == "i686-linux");
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "flashplayer-${version}";
|
name = "flashplayer-${version}";
|
||||||
@ -67,19 +69,47 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ unzip ];
|
buildInputs = [ unzip ];
|
||||||
|
|
||||||
postUnpack = ''
|
postUnpack = ''
|
||||||
cd */*${arch}
|
pushd $sourceRoot
|
||||||
tar -xvzf *${suffix}.tar.gz
|
tar -xvzf *${arch}/*${suffix}.tar.gz
|
||||||
|
|
||||||
|
${ lib.optionalString is-i686 ''
|
||||||
|
tar -xvzf */*_sa.*.tar.gz
|
||||||
|
tar -xvzf */*_sa_debug.*.tar.gz
|
||||||
|
''}
|
||||||
|
|
||||||
|
popd
|
||||||
'';
|
'';
|
||||||
|
|
||||||
sourceRoot = ".";
|
sourceRoot = "fp_${version}_archive";
|
||||||
|
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
dontPatchELF = true;
|
dontPatchELF = true;
|
||||||
|
|
||||||
|
outputs = [ "out" ] ++ lib.optionals is-i686 ["sa" "saDbg" ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/lib/mozilla/plugins
|
mkdir -p $out/lib/mozilla/plugins
|
||||||
cp -pv libflashplayer.so $out/lib/mozilla/plugins
|
cp -pv libflashplayer.so $out/lib/mozilla/plugins
|
||||||
patchelf --set-rpath "$rpath" $out/lib/mozilla/plugins/libflashplayer.so
|
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
|
||||||
|
''}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
|
@ -11846,6 +11846,10 @@ let
|
|||||||
debug = config.flashplayer.debug or false;
|
debug = config.flashplayer.debug or false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
flashplayer-standalone = pkgsi686Linux.flashplayer.sa;
|
||||||
|
|
||||||
|
flashplayer-standalone-debugger = pkgsi686Linux.flashplayer.saDbg;
|
||||||
|
|
||||||
fluxbox = callPackage ../applications/window-managers/fluxbox { };
|
fluxbox = callPackage ../applications/window-managers/fluxbox { };
|
||||||
|
|
||||||
fme = callPackage ../applications/misc/fme {
|
fme = callPackage ../applications/misc/fme {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user