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:
parent
970ce3a878
commit
cc6acb3e40
18
pkgs/build-support/vsenv/buildSolution.nix
Normal file
18
pkgs/build-support/vsenv/buildSolution.nix
Normal 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;
|
||||||
|
}
|
7
pkgs/build-support/vsenv/default.nix
Normal file
7
pkgs/build-support/vsenv/default.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{stdenv, vs}:
|
||||||
|
|
||||||
|
{
|
||||||
|
buildSolution = import ./buildSolution.nix {
|
||||||
|
inherit stdenv vs;
|
||||||
|
};
|
||||||
|
}
|
9
pkgs/development/compilers/vs90wrapper/default.nix
Normal file
9
pkgs/development/compilers/vs90wrapper/default.nix
Normal 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
|
||||||
|
'';
|
||||||
|
}
|
@ -235,6 +235,11 @@ let
|
|||||||
dotnetfx = dotnetfx35;
|
dotnetfx = dotnetfx35;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
vsenv = import ../build-support/vsenv {
|
||||||
|
inherit stdenv;
|
||||||
|
vs = vs90wrapper;
|
||||||
|
};
|
||||||
|
|
||||||
fetchbzr = import ../build-support/fetchbzr {
|
fetchbzr = import ../build-support/fetchbzr {
|
||||||
inherit stdenv bazaar;
|
inherit stdenv bazaar;
|
||||||
};
|
};
|
||||||
@ -2632,6 +2637,10 @@ let
|
|||||||
inherit fetchurl stdenv cabextract;
|
inherit fetchurl stdenv cabextract;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
vs90wrapper = import ../development/compilers/vs90wrapper {
|
||||||
|
inherit stdenv;
|
||||||
|
};
|
||||||
|
|
||||||
webdsl = import ../development/compilers/webdsl {
|
webdsl = import ../development/compilers/webdsl {
|
||||||
inherit stdenv fetchurl pkgconfig strategoPackages;
|
inherit stdenv fetchurl pkgconfig strategoPackages;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user