2e6bf42a22
There ver very many conflicts, basically all due to name -> pname+version. Fortunately, almost everything was auto-resolved by kdiff3, and for now I just fixed up a couple evaluation problems, as verified by the tarball job. There might be some fallback to these conflicts, but I believe it should be minimal. Hydra nixpkgs: ?compare=1538299
107 lines
2.2 KiB
Nix
107 lines
2.2 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchurl
|
|
, alsaLib
|
|
, atk
|
|
, bzip2
|
|
, cairo
|
|
, curl
|
|
, expat
|
|
, fontconfig
|
|
, freetype
|
|
, gdk-pixbuf
|
|
, glib
|
|
, glibc
|
|
, graphite2
|
|
, gtk2
|
|
, harfbuzz
|
|
, libICE
|
|
, libSM
|
|
, libX11
|
|
, libXau
|
|
, libXcomposite
|
|
, libXcursor
|
|
, libXdamage
|
|
, libXdmcp
|
|
, libXext
|
|
, libXfixes
|
|
, libXi
|
|
, libXinerama
|
|
, libXrandr
|
|
, libXrender
|
|
, libXt
|
|
, libXxf86vm
|
|
, libdrm
|
|
, libffi
|
|
, libglvnd
|
|
, libpng
|
|
, libvdpau
|
|
, libxcb
|
|
, libxshmfence
|
|
, nspr
|
|
, nss
|
|
, pango
|
|
, pcre
|
|
, pixman
|
|
, zlib
|
|
, unzip
|
|
, debug ? false
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "flashplayer-standalone";
|
|
version = "32.0.0.238";
|
|
|
|
src = fetchurl {
|
|
url =
|
|
if debug then
|
|
"https://fpdownload.macromedia.com/pub/flashplayer/updaters/32/flash_player_sa_linux_debug.x86_64.tar.gz"
|
|
else
|
|
"https://fpdownload.macromedia.com/pub/flashplayer/updaters/32/flash_player_sa_linux.x86_64.tar.gz";
|
|
sha256 =
|
|
if debug then
|
|
"1vhfjpwsmg96irfvz81ldzn2m4qcjnql5psg4cifjay423yxabvy"
|
|
else
|
|
"0am95xi2jasvxj5b2i12wzpvl3bvxli537k1i04698cg0na6x0y0";
|
|
};
|
|
|
|
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
|
|
alsaLib atk bzip2 cairo curl expat fontconfig freetype gdk-pixbuf glib
|
|
glibc graphite2 gtk2 harfbuzz libICE libSM libX11 libXau libXcomposite
|
|
libXcursor libXdamage libXdmcp libXext libXfixes libXi libXinerama
|
|
libXrandr libXrender libXt libXxf86vm libdrm libffi libglvnd libpng
|
|
libvdpau libxcb libxshmfence nspr nss pango pcre pixman zlib
|
|
];
|
|
|
|
meta = {
|
|
description = "Adobe Flash Player standalone executable";
|
|
homepage = https://www.adobe.com/support/flashplayer/debug_downloads.html;
|
|
license = stdenv.lib.licenses.unfree;
|
|
maintainers = [];
|
|
platforms = [ "x86_64-linux" ];
|
|
# Application crashed with an unhandled SIGSEGV
|
|
# Not on all systems, though. Video driver problem?
|
|
broken = false;
|
|
};
|
|
}
|