summary refs log tree commit diff
path: root/pkgs/development/compilers/visual-c++
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2006-06-02 09:56:10 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2006-06-02 09:56:10 +0000
commit91aebd86160c54b18a7eecc335a4f901eb867783 (patch)
tree1cdf42f2381d7f60a3cc83a017abce2ca998151a /pkgs/development/compilers/visual-c++
parent8554e01d2b3990e979bf9fc0849c55c6bebdb87a (diff)
downloadnixlib-91aebd86160c54b18a7eecc335a4f901eb867783.tar
nixlib-91aebd86160c54b18a7eecc335a4f901eb867783.tar.gz
nixlib-91aebd86160c54b18a7eecc335a4f901eb867783.tar.bz2
nixlib-91aebd86160c54b18a7eecc335a4f901eb867783.tar.lz
nixlib-91aebd86160c54b18a7eecc335a4f901eb867783.tar.xz
nixlib-91aebd86160c54b18a7eecc335a4f901eb867783.tar.zst
nixlib-91aebd86160c54b18a7eecc335a4f901eb867783.zip
* A wrapper around the Visual C++ compiler and the Windows SDK.
  TODO: download and unpack into the Nix store Visual C++ (either from
  Visual C++ Express Edition or from the .NET 2.0 Framework SDK) and
  the Windows Platform SDK.  The command line tools don't seem to need
  any registry settings...

svn path=/nixpkgs/trunk/; revision=5369
Diffstat (limited to 'pkgs/development/compilers/visual-c++')
-rw-r--r--pkgs/development/compilers/visual-c++/builder.sh8
-rw-r--r--pkgs/development/compilers/visual-c++/default.nix14
2 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/development/compilers/visual-c++/builder.sh b/pkgs/development/compilers/visual-c++/builder.sh
new file mode 100644
index 000000000000..fe90f77c23ef
--- /dev/null
+++ b/pkgs/development/compilers/visual-c++/builder.sh
@@ -0,0 +1,8 @@
+source $stdenv/setup
+
+ensureDir $out
+cat > $out/setup  <<EOF
+export PATH="$vs8Path/VC/bin:$vs8Path/Common7/IDE:$sdkPath/bin:$PATH"
+export LIB="$(cygpath -w -p "$vs8Path/VC/lib:$sdkPath/lib")"
+export INCLUDE="$(cygpath -w -p "$sdkPath/include:$sdkPath/include/crt")"
+EOF
diff --git a/pkgs/development/compilers/visual-c++/default.nix b/pkgs/development/compilers/visual-c++/default.nix
new file mode 100644
index 000000000000..efae5799b2f1
--- /dev/null
+++ b/pkgs/development/compilers/visual-c++/default.nix
@@ -0,0 +1,14 @@
+{stdenv, fetchurl}:
+
+assert stdenv.system == "i686-cygwin";
+
+stdenv.mkDerivation {
+  # Derived from Visual C++ 2005 (= VC 8), followed by cl.exe's
+  # internal version number.
+  name = "visual-c++-8-14.00.50727.42";
+  builder = ./builder.sh;
+
+  # These should be downloaded eventually.
+  vs8Path = "/cygdrive/c/Program Files/Microsoft Visual Studio 8";
+  sdkPath = "/cygdrive/c/Program Files/Microsoft Platform SDK";
+}