2009-04-06 14:07:21 +01:00
|
|
|
args: with args;
|
|
|
|
stdenv.mkDerivation rec {
|
2010-01-04 07:44:27 +00:00
|
|
|
name = "adobe_flex_sdk_3.4.1.10084_mpl";
|
2009-04-06 14:07:21 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-01-04 07:44:27 +00:00
|
|
|
# This is the open source distribution
|
|
|
|
url = http://fpdownload.adobe.com/pub/flex/sdk/builds/flex3/flex_sdk_3.4.1.10084_mpl.zip;
|
|
|
|
sha256 = "0bq0cnq25qyr3g64sqqc20y3mmnhgh07p3ylxd2iq0ha8cdis7z0";
|
2009-04-06 14:07:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
ensureDir $t $out/bin
|
|
|
|
mv * $t
|
2010-01-04 07:44:27 +00:00
|
|
|
rm $t/bin/*.exe $t/bin/*.bat
|
|
|
|
sed 's/
$//' -i $t/bin/*
|
|
|
|
for i in $t/bin/*; do
|
2009-04-06 14:07:21 +01:00
|
|
|
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 flash / action script developement kit";
|
|
|
|
homepage = "http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_sdk.html#installation";
|
|
|
|
license = "MPLv1.1"; # Mozilla Public License Version 1.1
|
|
|
|
};
|
|
|
|
}
|