2010-06-15 12:32:19 +01:00
|
|
|
{stdenv, vs}:
|
|
|
|
{ name
|
|
|
|
, src
|
|
|
|
, slnFile
|
|
|
|
, baseDir ? "."
|
|
|
|
, extraBuildInputs ? []
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit name src;
|
|
|
|
installPhase = ''
|
|
|
|
cd ${baseDir}
|
|
|
|
vcbuild.exe /rebuild ${slnFile}
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out
|
2010-06-15 12:32:19 +01:00
|
|
|
cp Debug/* $out
|
|
|
|
'';
|
|
|
|
buildInputs = [ vs ] ++ extraBuildInputs;
|
|
|
|
}
|