summary refs log tree commit diff
path: root/pkgs/build-support/vsenv/build-solution.nix
blob: 7d7d6a86e1f354d21aeddaf86c7e3d546630135c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
}