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