mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 18:37:04 +03:00
2b7faad594
svn path=/nixpkgs/trunk/; revision=22277
19 lines
288 B
Nix
19 lines
288 B
Nix
{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;
|
|
}
|