flashplayer: cleanup, add comment to maintainers
This commit is contained in:
parent
28232c3746
commit
d45ac41e87
@ -36,6 +36,13 @@
|
|||||||
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
/* When updating this package, test that the following derivations build:
|
||||||
|
|
||||||
|
* flashplayer
|
||||||
|
* flashplayer-standalone
|
||||||
|
* flashplayer-standalone-debugger
|
||||||
|
*/
|
||||||
|
|
||||||
let
|
let
|
||||||
arch =
|
arch =
|
||||||
if stdenv.system == "x86_64-linux" then
|
if stdenv.system == "x86_64-linux" then
|
||||||
@ -55,6 +62,10 @@ 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";
|
||||||
|
|
||||||
|
saname =
|
||||||
|
if debug then "flashplayerdebugger"
|
||||||
|
else "flashplayer";
|
||||||
|
|
||||||
is-i686 = (stdenv.system == "i686-linux");
|
is-i686 = (stdenv.system == "i686-linux");
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -66,53 +77,38 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0y4bjkla6ils4crmx61pi31s4gscy8rgiv7xccx1z0g6hba9j73l";
|
sha256 = "0y4bjkla6ils4crmx61pi31s4gscy8rgiv7xccx1z0g6hba9j73l";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ unzip ];
|
nativeBuildInputs = [ unzip ];
|
||||||
|
|
||||||
|
sourceRoot = ".";
|
||||||
|
|
||||||
postUnpack = ''
|
postUnpack = ''
|
||||||
pushd $sourceRoot
|
cd *${arch}
|
||||||
|
|
||||||
tar -xvzf *${suffix}.tar.gz
|
tar -xvzf *${suffix}.tar.gz
|
||||||
|
|
||||||
${ lib.optionalString is-i686 ''
|
${lib.optionalString is-i686 ''
|
||||||
tar -xvzf *_sa[_.]*.tar.gz
|
tar -xvzf *_sa[_.]*.tar.gz
|
||||||
''}
|
''}
|
||||||
|
|
||||||
popd
|
|
||||||
'';
|
|
||||||
|
|
||||||
setSourceRoot = ''
|
|
||||||
sourceRoot=$(ls -d *${arch})
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
dontPatchELF = true;
|
dontPatchELF = true;
|
||||||
|
|
||||||
outputs = [ "out" ] ++ lib.optional (is-i686 && !debug) "sa" ++ lib.optional (is-i686 && debug) "saDbg";
|
outputs = [ "out" ] ++ lib.optional is-i686 "sa";
|
||||||
|
|
||||||
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 ''
|
${lib.optionalString is-i686 ''
|
||||||
${ lib.optionalString (!debug) ''
|
install -Dm755 ${saname} $sa/bin/flashplayer
|
||||||
mkdir -p $sa/bin
|
|
||||||
cp flashplayer $sa/bin/
|
|
||||||
|
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
||||||
--set-rpath "$rpath" \
|
--set-rpath "$rpath" \
|
||||||
$sa/bin/flashplayer
|
$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
|
|
||||||
''}
|
|
||||||
''}
|
''}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -120,7 +116,7 @@ stdenv.mkDerivation rec {
|
|||||||
mozillaPlugin = "/lib/mozilla/plugins";
|
mozillaPlugin = "/lib/mozilla/plugins";
|
||||||
};
|
};
|
||||||
|
|
||||||
rpath = stdenv.lib.makeLibraryPath
|
rpath = lib.makeLibraryPath
|
||||||
[ zlib alsaLib curl nspr fontconfig freetype expat libX11
|
[ zlib alsaLib curl nspr fontconfig freetype expat libX11
|
||||||
libXext libXrender libXcursor libXt gtk glib pango atk cairo gdk_pixbuf
|
libXext libXrender libXcursor libXt gtk glib pango atk cairo gdk_pixbuf
|
||||||
libvdpau nss
|
libvdpau nss
|
||||||
|
@ -12378,7 +12378,7 @@ in
|
|||||||
|
|
||||||
flashplayer-standalone = pkgsi686Linux.flashplayer.sa;
|
flashplayer-standalone = pkgsi686Linux.flashplayer.sa;
|
||||||
|
|
||||||
flashplayer-standalone-debugger = pkgsi686Linux.flashplayer.saDbg;
|
flashplayer-standalone-debugger = (pkgsi686Linux.flashplayer.override { debug = true; }).sa;
|
||||||
|
|
||||||
fluxbox = callPackage ../applications/window-managers/fluxbox { };
|
fluxbox = callPackage ../applications/window-managers/fluxbox { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user