2016-12-25 11:32:24 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, alsaLib
|
|
|
|
, atk
|
|
|
|
, bzip2
|
|
|
|
, cairo
|
|
|
|
, curl
|
|
|
|
, expat
|
|
|
|
, fontconfig
|
|
|
|
, freetype
|
2019-05-22 12:03:39 +01:00
|
|
|
, gdk-pixbuf
|
2016-12-25 11:32:24 +00:00
|
|
|
, glib
|
|
|
|
, glibc
|
|
|
|
, graphite2
|
|
|
|
, gtk2
|
|
|
|
, harfbuzz
|
|
|
|
, libICE
|
|
|
|
, libSM
|
|
|
|
, libX11
|
|
|
|
, libXau
|
|
|
|
, libXcomposite
|
|
|
|
, libXcursor
|
|
|
|
, libXdamage
|
|
|
|
, libXdmcp
|
|
|
|
, libXext
|
|
|
|
, libXfixes
|
|
|
|
, libXi
|
|
|
|
, libXinerama
|
|
|
|
, libXrandr
|
|
|
|
, libXrender
|
|
|
|
, libXt
|
|
|
|
, libXxf86vm
|
|
|
|
, libdrm
|
|
|
|
, libffi
|
2018-11-07 15:36:30 +00:00
|
|
|
, libglvnd
|
2016-12-25 11:32:24 +00:00
|
|
|
, libpng
|
|
|
|
, libvdpau
|
|
|
|
, libxcb
|
|
|
|
, libxshmfence
|
|
|
|
, nspr
|
|
|
|
, nss
|
|
|
|
, pango
|
|
|
|
, pcre
|
|
|
|
, pixman
|
|
|
|
, zlib
|
|
|
|
, unzip
|
|
|
|
, debug ? false
|
|
|
|
}:
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "flashplayer-standalone";
|
2020-09-08 07:15:04 +01:00
|
|
|
version = "32.0.0.433";
|
2016-12-25 11:32:24 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url =
|
|
|
|
if debug then
|
2018-12-05 12:13:07 +00:00
|
|
|
"https://fpdownload.macromedia.com/pub/flashplayer/updaters/32/flash_player_sa_linux_debug.x86_64.tar.gz"
|
2016-12-25 11:32:24 +00:00
|
|
|
else
|
2018-12-05 12:13:07 +00:00
|
|
|
"https://fpdownload.macromedia.com/pub/flashplayer/updaters/32/flash_player_sa_linux.x86_64.tar.gz";
|
2016-12-25 11:32:24 +00:00
|
|
|
sha256 =
|
|
|
|
if debug then
|
2020-09-08 07:15:04 +01:00
|
|
|
"1ys523wwhvj96jph435lnyp07qzg9f70j349l7ggwgg96rflalpf"
|
2016-12-25 11:32:24 +00:00
|
|
|
else
|
2020-09-08 07:15:04 +01:00
|
|
|
"1ycw2amis7yvidc6q87gls6rb305p89pr7mhzknc10v0nh34781m";
|
2016-12-25 11:32:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
dontPatchELF = true;
|
|
|
|
|
|
|
|
preferLocalBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -pv flashplayer${lib.optionalString debug "debugger"} $out/bin
|
|
|
|
|
|
|
|
patchelf \
|
|
|
|
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
|
|
|
--set-rpath "$rpath" \
|
|
|
|
$out/bin/flashplayer${lib.optionalString debug "debugger"}
|
|
|
|
'';
|
|
|
|
|
|
|
|
rpath = lib.makeLibraryPath
|
|
|
|
[ stdenv.cc.cc
|
2019-05-22 12:03:39 +01:00
|
|
|
alsaLib atk bzip2 cairo curl expat fontconfig freetype gdk-pixbuf glib
|
2016-12-25 11:32:24 +00:00
|
|
|
glibc graphite2 gtk2 harfbuzz libICE libSM libX11 libXau libXcomposite
|
|
|
|
libXcursor libXdamage libXdmcp libXext libXfixes libXi libXinerama
|
2018-11-07 15:36:30 +00:00
|
|
|
libXrandr libXrender libXt libXxf86vm libdrm libffi libglvnd libpng
|
|
|
|
libvdpau libxcb libxshmfence nspr nss pango pcre pixman zlib
|
2016-12-25 11:32:24 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Adobe Flash Player standalone executable";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.adobe.com/support/flashplayer/debug_downloads.html";
|
2016-12-25 11:32:24 +00:00
|
|
|
license = stdenv.lib.licenses.unfree;
|
2019-10-09 13:13:14 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ taku0 ];
|
2016-12-25 11:32:24 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2019-01-10 10:49:22 +00:00
|
|
|
# Application crashed with an unhandled SIGSEGV
|
2019-01-22 14:47:29 +00:00
|
|
|
# Not on all systems, though. Video driver problem?
|
|
|
|
broken = false;
|
2016-12-25 11:32:24 +00:00
|
|
|
};
|
|
|
|
}
|