* Started adding the Windows SDK.
svn path=/nixpkgs/trunk/; revision=5384
This commit is contained in:
parent
588383905a
commit
d571eaafb3
@ -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";
|
||||
}
|
||||
|
23
pkgs/development/misc/windows-sdk/builder.sh
Normal file
23
pkgs/development/misc/windows-sdk/builder.sh
Normal 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
|
26
pkgs/development/misc/windows-sdk/default.nix
Normal file
26
pkgs/development/misc/windows-sdk/default.nix
Normal 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];
|
||||
}
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user