nixpkgs/pkgs/development/compilers/visual-c++/builder.sh
Eelco Dolstra 588383905a * Download and unpack Visual C++ 2005 Express Edition.
svn path=/nixpkgs/trunk/; revision=5383
2006-06-05 19:26:11 +00:00

24 lines
518 B
Bash

source $stdenv/setup
ensureDir $out
cabextract $src
mkdir tmp
cd tmp
cabextract ../vcsetup1.cab
rm ../vc* # reduce temporary disk usage a bit
while read target; do
read source
echo "$source -> $target"
ensureDir $out/$(dirname $target)
cp "$source" $out/"$target"
done < $filemap
cat > $out/setup <<EOF
export PATH="$out/VC/bin:$out/Common7/IDE:$sdkPath/bin:\$PATH"
export LIB="$(cygpath -w -p "$out/VC/lib:$sdkPath/lib")"
export INCLUDE="$(cygpath -w -p "$out/VC/include:$sdkPath/include")"
EOF