mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
adobe_flex_sdk: 4.0.0.14159 -> apache-flex-sdk: 4.16.1 (#41257)
This commit is contained in:
parent
a1bc16a18f
commit
9290905b3a
@ -1,41 +0,0 @@
|
||||
{ stdenv, fetchurl, unzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "adobe-flex-sdk-4.0.0.14159";
|
||||
|
||||
src = fetchurl {
|
||||
# This is the open source distribution
|
||||
url = http://fpdownload.adobe.com/pub/flex/sdk/builds/flex4/flex_sdk_4.0.0.14159_mpl.zip;
|
||||
sha256 = "1x12sji6g42bm1h7jndkda5vpah6vnkpc13qwq0c4xvbsh8757v5";
|
||||
};
|
||||
|
||||
phases = "installPhase";
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
|
||||
# Why do shell scripts have \r\n ??
|
||||
# moving to /opt because jdk has lib/xercesImpl.jar as well
|
||||
installPhase = ''
|
||||
unzip ${src}
|
||||
t=$out/opt/flex-sdk
|
||||
mkdir -p $t $out/bin
|
||||
mv * $t
|
||||
rm $t/bin/*.exe $t/bin/*.bat
|
||||
sed 's/
$//' -i $t/bin/*
|
||||
for i in $t/bin/*; do
|
||||
b="$(basename "$i")";
|
||||
cat > "$out/bin/$b" << EOF
|
||||
#!/bin/sh
|
||||
exec $t/bin/$b "\$@"
|
||||
EOF
|
||||
chmod +x $out/bin/$b $t/bin/$b
|
||||
done
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Flex SDK for Adobe Flash / ActionScript";
|
||||
homepage = "https://www.adobe.com/products/flex.html";
|
||||
license = stdenv.lib.licenses.mpl11;
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
};
|
||||
}
|
56
pkgs/development/compilers/apache-flex-sdk/default.nix
Normal file
56
pkgs/development/compilers/apache-flex-sdk/default.nix
Normal file
@ -0,0 +1,56 @@
|
||||
{ stdenv, fetchurl, makeWrapper, jre }:
|
||||
|
||||
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 {
|
||||
name = "apache-flex-sdk-${version}";
|
||||
version = "4.16.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.apache.org/dist/flex/${version}/binaries/${name}-bin.tar.gz";
|
||||
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 \
|
||||
--set PLAYERGLOBAL_HOME $t/frameworks/libs/player/
|
||||
done
|
||||
|
||||
mkdir -p $t/frameworks/libs/player/${playerglobal_ver}/
|
||||
cp ${playerglobal} $t/frameworks/libs/player/${playerglobal_ver}/playerglobal.swc
|
||||
'';
|
||||
|
||||
fixupPhase = ":";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Flex SDK for Adobe Flash / ActionScript";
|
||||
homepage = "https://flex.apache.org/";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ dywedir ];
|
||||
};
|
||||
}
|
@ -37,6 +37,7 @@ mapAliases (rec {
|
||||
QmidiNet = qmidinet; # added 2016-05-22
|
||||
accounts-qt = libsForQt5.accounts-qt; # added 2015-12-19
|
||||
adobeReader = adobe-reader; # added 2013-11-04
|
||||
adobe_flex_sdk = apache-flex-sdk; # added 2018-06-01
|
||||
ag = silver-searcher; # added 2018-04-25
|
||||
aircrackng = aircrack-ng; # added 2016-01-14
|
||||
ammonite-repl = ammonite; # added 2017-05-02
|
||||
|
@ -6119,7 +6119,7 @@ with pkgs;
|
||||
|
||||
elmPackages = recurseIntoAttrs (callPackage ../development/compilers/elm { });
|
||||
|
||||
adobe_flex_sdk = callPackage ../development/compilers/adobe-flex-sdk { };
|
||||
apache-flex-sdk = callPackage ../development/compilers/apache-flex-sdk { };
|
||||
|
||||
fpc = callPackage ../development/compilers/fpc { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user