* Started adding the Windows SDK.

svn path=/nixpkgs/trunk/; revision=5384
This commit is contained in:
Eelco Dolstra 2006-06-05 19:40:14 +00:00
parent 588383905a
commit d571eaafb3
4 changed files with 53 additions and 4 deletions

View file

@ -24,8 +24,4 @@ stdenv.mkDerivation {
filemap = ./filemap;
buildInputs = [cabextract];
# These should be downloaded eventually.
# vs8Path = "/cygdrive/c/Program Files/Microsoft Visual Studio 8";
sdkPath = "/cygdrive/c/Program Files/Microsoft Platform SDK";
}

View file

@ -0,0 +1,23 @@
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/bin:\$PATH"
export LIB="$(cygpath -w -p "$out/lib");\$LIB"
export INCLUDE="$(cygpath -w -p "$out/include");\$INCLUDE"
EOF

View file

@ -0,0 +1,26 @@
{stdenv, fetchurl, cabextract}:
#assert stdenv.system == "i686-cygwin";
stdenv.mkDerivation {
# Windows Server 2003 R2 Platform SDK - March 2006 Edition.
name = "windows-sdk-2003-r2";
builder = ./builder.sh;
# src = fetchurl {
# url = http://download.microsoft.com/download/0/5/A/05AA45B9-A4BE-4872-8D57-733DF5297284/Ixpvc.exe;
# md5 = "5b3b07cb048798822582a752f586bab9";
# };
# The `filemap' maps the pretty much useless paths in the CAB file
# to their intended destinations in the file system, as determined
# from a normal Visual C++ Express installation.
#
# Recipe for reproducing:
# $ find -type f /path/to/unpacked-cab -print0 | xargs -0 md5sum > m1
# $ find -type f /path/to/visual-c++ -print0 | xargs -0 md5sum > m2
# $ nixpkgs/maintainers/scripts/map-files.pl m1 m2 > filemap
# filemap = ./filemap;
buildInputs = [cabextract];
}

View file

@ -832,6 +832,10 @@ rec {
inherit fetchurl stdenv cabextract;
};
windowssdk = import ../development/misc/windows-sdk {
inherit fetchurl stdenv cabextract;
};
win32hello = import ../development/compilers/visual-c++/test {
inherit fetchurl stdenv visualcpp;
};