3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers/adobe-flex-sdk/default.nix
Ryan Mulligan b189247ba0 treewide: use more HTTPS URLs
Uses the HTTPS url for cases where the existing URL has a permanent
redirect. For each domain, at least one fixed derivation URL was
downloaded to test the domain is properly serving downloads.

Also fixes jbake source URL, which was broken.
2018-03-24 22:04:25 -07:00

42 lines
1 KiB
Nix

{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
name = "adobe-flex-sdk-4.0.0.14159-mpl";
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;
};
}