diff --git a/pkgs/development/compilers/adobe-flex-sdk/default.nix b/pkgs/development/compilers/adobe-flex-sdk/default.nix new file mode 100644 index 000000000000..7beea35a78a6 --- /dev/null +++ b/pkgs/development/compilers/adobe-flex-sdk/default.nix @@ -0,0 +1,38 @@ +args: with args; +stdenv.mkDerivation rec { + name = "adobe-flex-sdk-3.3.0.4852_mpl"; + + src = fetchurl { + url = http://flexorg.wip3.adobe.com/flexsdk/3.3.0.4852/flex_sdk_3.3.0.4852_mpl.zip; + sha256 = "1gsm774afc7zwv3hyib5n6fpdbnd0dh6z7r2amjf38fm96jw7a99"; + }; + + 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 + sed 's/ $//' -i $t/bin/mxmlc + rm $t/bin/*.exe + for i in $t/bin/mxmlc; 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 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 + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 15dcb40c1760..0364f9f3eb52 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1521,6 +1521,10 @@ let inherit fetchsvn stdenv coreutils m4 libtool ghc uulib uuagc llvm; }; + adobeFlexSDK33 = import ../development/compilers/adobe-flex-sdk { + inherit fetchurl stdenv unzip jre; + }; + fpc = import ../development/compilers/fpc { inherit fetchurl stdenv gawk system; };