about summary refs log tree commit diff
path: root/pkgs/development/compilers/visual-c++/default.nix
blob: e111da6e7a19f9bba380f37a0fb70c1eac487341 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{stdenv, fetchurl, cabextract}:

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;

  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];
}