2021-01-22 11:25:31 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, jre }:
|
2018-06-02 09:44:24 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
playerglobal_ver = "27.0";
|
|
|
|
playerglobal = fetchurl {
|
|
|
|
url = "https://fpdownload.macromedia.com/get/flashplayer/updaters/27/playerglobal27_0.swc";
|
|
|
|
sha256 = "0qw2bgls8qsmp80j8vpd4c7s0c8anlrk0ac8z42w89bajcdbwk2f";
|
|
|
|
};
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "apache-flex-sdk";
|
2018-06-02 09:44:24 +01:00
|
|
|
version = "4.16.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://www.apache.org/dist/flex/${version}/binaries/${pname}-${version}-bin.tar.gz";
|
2018-06-02 09:44:24 +01:00
|
|
|
sha256 = "13iq16dqvgcpb0p35x66hzxsq5pkbr2lbwr766nnqiryinnagz8p";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
buildInputs = [ jre ];
|
|
|
|
|
|
|
|
buildPhase = ":";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
shopt -s extglob
|
|
|
|
for i in bin/!(aasdoc|acompc|amxmlc); do
|
|
|
|
substituteInPlace $i --replace "java " "${jre}/bin/java "
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
t=$out/opt/apache-flex-sdk
|
|
|
|
mkdir -p $t $out/bin
|
|
|
|
mv * $t
|
|
|
|
rm $t/bin/*.bat
|
|
|
|
ln -s $t/bin/* $out/bin/
|
|
|
|
|
|
|
|
for i in $out/bin/!(aasdoc|acompc|amxmlc); do
|
|
|
|
wrapProgram $i \
|
|
|
|
--set FLEX_HOME $t \
|
2021-01-21 00:55:55 +00:00
|
|
|
--set PLAYERGLOBAL_HOME $t/frameworks/libs/player/
|
2018-06-02 09:44:24 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
mkdir -p $t/frameworks/libs/player/${playerglobal_ver}/
|
|
|
|
cp ${playerglobal} $t/frameworks/libs/player/${playerglobal_ver}/playerglobal.swc
|
|
|
|
'';
|
2021-01-21 00:55:55 +00:00
|
|
|
|
2018-06-02 09:44:24 +01:00
|
|
|
fixupPhase = ":";
|
|
|
|
|
2021-01-22 11:25:31 +00:00
|
|
|
meta = with lib; {
|
2018-06-02 09:44:24 +01:00
|
|
|
description = "Flex SDK for Adobe Flash / ActionScript";
|
|
|
|
homepage = "https://flex.apache.org/";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ dywedir ];
|
|
|
|
};
|
|
|
|
}
|