2010-07-28 11:55:54 +00:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
|
|
|
|
2009-04-06 13:07:21 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2010-06-14 22:35:40 +00:00
|
|
|
name = "adobe-flex-sdk-4.0.0.14159-mpl";
|
2009-04-06 13:07:21 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-01-04 07:44:27 +00:00
|
|
|
# This is the open source distribution
|
2010-06-14 16:52:15 +00:00
|
|
|
url = http://fpdownload.adobe.com/pub/flex/sdk/builds/flex4/flex_sdk_4.0.0.14159_mpl.zip;
|
|
|
|
sha256 = "1x12sji6g42bm1h7jndkda5vpah6vnkpc13qwq0c4xvbsh8757v5";
|
2009-04-06 13:07:21 +00:00
|
|
|
};
|
|
|
|
|
2010-07-28 11:55:54 +00:00
|
|
|
phases = "installPhase";
|
2009-04-06 13:07:21 +00:00
|
|
|
|
|
|
|
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
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $t $out/bin
|
2009-04-06 13:07:21 +00:00
|
|
|
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 13:07:21 +00: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
|
|
|
|
'';
|
|
|
|
|
2017-08-17 21:59:43 +00:00
|
|
|
meta = {
|
2011-09-12 13:02:54 +00:00
|
|
|
description = "Flex SDK for Adobe Flash / ActionScript";
|
2017-08-17 21:59:43 +00:00
|
|
|
homepage = "http://www.adobe.com/products/flex.html";
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.mpl11;
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-04-06 13:07:21 +00:00
|
|
|
};
|
|
|
|
}
|