Added my very experimental Visual Studio build stuff. You should be even more brave to use this

svn path=/nixpkgs/trunk/; revision=22273
This commit is contained in:
Sander van der Burg 2010-06-15 11:32:19 +00:00
parent 970ce3a878
commit cc6acb3e40
4 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,18 @@
{stdenv, vs}:
{ name
, src
, slnFile
, baseDir ? "."
, extraBuildInputs ? []
}:
stdenv.mkDerivation {
inherit name src;
installPhase = ''
cd ${baseDir}
vcbuild.exe /rebuild ${slnFile}
ensureDir $out
cp Debug/* $out
'';
buildInputs = [ vs ] ++ extraBuildInputs;
}

View File

@ -0,0 +1,7 @@
{stdenv, vs}:
{
buildSolution = import ./buildSolution.nix {
inherit stdenv vs;
};
}

View File

@ -0,0 +1,9 @@
{stdenv}:
stdenv.mkDerivation {
name = "visual-studio-9.0";
buildCommand = ''
ensureDir $out/bin
ln -s "/cygdrive/c/Program Files/Microsoft Visual Studio 9.0/VC/vcpackages/vcbuild.exe" $out/bin/vcbuild.exe
'';
}

View File

@ -235,6 +235,11 @@ let
dotnetfx = dotnetfx35;
};
vsenv = import ../build-support/vsenv {
inherit stdenv;
vs = vs90wrapper;
};
fetchbzr = import ../build-support/fetchbzr {
inherit stdenv bazaar;
};
@ -2632,6 +2637,10 @@ let
inherit fetchurl stdenv cabextract;
});
vs90wrapper = import ../development/compilers/vs90wrapper {
inherit stdenv;
};
webdsl = import ../development/compilers/webdsl {
inherit stdenv fetchurl pkgconfig strategoPackages;
};