flashplayer: cleanup, use archive as a source
Most work done by ericsagnes
This commit is contained in:
parent
427d00ee36
commit
26e738206c
@ -1,23 +0,0 @@
|
|||||||
source $stdenv/setup
|
|
||||||
|
|
||||||
dontStrip=1
|
|
||||||
dontPatchELF=1
|
|
||||||
sourceRoot=$TMPDIR
|
|
||||||
|
|
||||||
unpackPhase() {
|
|
||||||
tar xvzf $src;
|
|
||||||
for a in *; do
|
|
||||||
if [ -d $a ]; then
|
|
||||||
cd $a
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
installPhase() {
|
|
||||||
mkdir -p $out/lib/mozilla/plugins
|
|
||||||
cp -pv libflashplayer.so $out/lib/mozilla/plugins
|
|
||||||
patchelf --set-rpath "$rpath" $out/lib/mozilla/plugins/libflashplayer.so
|
|
||||||
}
|
|
||||||
|
|
||||||
genericBuild
|
|
@ -20,6 +20,7 @@
|
|||||||
, atk
|
, atk
|
||||||
, gdk_pixbuf
|
, gdk_pixbuf
|
||||||
, nss
|
, nss
|
||||||
|
, unzip
|
||||||
, debug ? false
|
, debug ? false
|
||||||
|
|
||||||
/* you have to add ~/mm.cfg :
|
/* you have to add ~/mm.cfg :
|
||||||
@ -35,45 +36,41 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
# -> http://get.adobe.com/flashplayer/
|
arch =
|
||||||
|
if stdenv.system == "x86_64-linux" then
|
||||||
|
if debug then throw "no x86_64 debugging version available"
|
||||||
|
else "64bit"
|
||||||
|
else if stdenv.system == "i686-linux" then
|
||||||
|
if debug then "32bit_debug"
|
||||||
|
else "32bit"
|
||||||
|
else throw "Flash Player is not supported on this platform";
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "flashplayer-${version}";
|
||||||
version = "11.2.202.554";
|
version = "11.2.202.554";
|
||||||
|
|
||||||
src =
|
src = fetchurl {
|
||||||
if stdenv.system == "x86_64-linux" then
|
url = "https://fpdownload.macromedia.com/pub/flashplayer/installers/archive/fp_${version}_archive.zip";
|
||||||
if debug then
|
sha256 = "0pjan07k419pk3lmfdl5vww0ipf5b76cxqhxwjrikb1fc4x993fi";
|
||||||
# no plans to provide a x86_64 version:
|
};
|
||||||
# http://labs.adobe.com/technologies/flashplayer10/faq.html
|
|
||||||
throw "no x86_64 debugging version available"
|
|
||||||
else rec {
|
|
||||||
inherit version;
|
|
||||||
url = "http://fpdownload.adobe.com/get/flashplayer/pdc/${version}/install_flash_player_11_linux.x86_64.tar.gz";
|
|
||||||
sha256 = "15zziclffvsa0wpygkwzbh3v367n73pmzwsnkanhg75rv28dgl3x";
|
|
||||||
}
|
|
||||||
else if stdenv.system == "i686-linux" then
|
|
||||||
if debug then
|
|
||||||
throw "flash debugging version is outdated and probably broken" /* {
|
|
||||||
# The debug version also contains a player
|
|
||||||
version = "11.1";
|
|
||||||
url = http://fpdownload.adobe.com/pub/flashplayer/updaters/11/flashplayer_11_plugin_debug.i386.tar.gz;
|
|
||||||
sha256 = "0jn7klq2cyqasj6nxfka2l8nsf7sn7hi6443nv6dd2sb3g7m6x92";
|
|
||||||
}*/
|
|
||||||
else rec {
|
|
||||||
inherit version;
|
|
||||||
url = "http://fpdownload.adobe.com/get/flashplayer/pdc/${version}/install_flash_player_11_linux.i386.tar.gz";
|
|
||||||
sha256 = "1a26l6lz5l6qbx4lm7266pzk0zr77h6issbnayr6df9qj99bppyz";
|
|
||||||
}
|
|
||||||
else throw "Flash Player is not supported on this platform";
|
|
||||||
|
|
||||||
in
|
buildInputs = [ unzip ];
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
postUnpack = ''
|
||||||
name = "flashplayer-${src.version}";
|
cd */*${arch}
|
||||||
|
tar -xvzf flash-plugin*.tar.gz
|
||||||
|
'';
|
||||||
|
|
||||||
builder = ./builder.sh;
|
sourceRoot = ".";
|
||||||
|
|
||||||
src = fetchurl { inherit (src) url sha256; };
|
dontStrip = true;
|
||||||
|
dontPatchELF = true;
|
||||||
|
|
||||||
inherit zlib alsaLib;
|
installPhase = ''
|
||||||
|
mkdir -p $out/lib/mozilla/plugins
|
||||||
|
cp -pv libflashplayer.so $out/lib/mozilla/plugins
|
||||||
|
patchelf --set-rpath "$rpath" $out/lib/mozilla/plugins/libflashplayer.so
|
||||||
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
mozillaPlugin = "/lib/mozilla/plugins";
|
mozillaPlugin = "/lib/mozilla/plugins";
|
||||||
@ -85,8 +82,6 @@ stdenv.mkDerivation {
|
|||||||
libvdpau nss
|
libvdpau nss
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ":";
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Adobe Flash Player browser plugin";
|
description = "Adobe Flash Player browser plugin";
|
||||||
homepage = http://www.adobe.com/products/flashplayer/;
|
homepage = http://www.adobe.com/products/flashplayer/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user