Permalink
Browse files

* A Hello World GUI application compiled with VC++.

svn path=/nixpkgs/trunk/; revision=5370
  • Loading branch information...
edolstra committed Jun 2, 2006
1 parent 91aebd8 commit 08d3840c94aa4016cdab441751ac78692dc600e2
@@ -0,0 +1,5 @@
source $stdenv/setup
source $visualcpp/setup

ensureDir $out/bin
cl "$(cygpath -w $src)" /Fe"$(cygpath -w $out/bin/hello.exe)" user32.lib
@@ -0,0 +1,10 @@
{stdenv, fetchurl, visualcpp}:

assert stdenv.system == "i686-cygwin";

stdenv.mkDerivation {
name = "win32-hello";
builder = ./builder.sh;
src = ./hello.c;
inherit visualcpp;
}
@@ -0,0 +1,7 @@
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
int nCmdShow)
{
MessageBox(NULL, "Hello World!", "Nix", MB_OK);
return 0;
}
@@ -832,6 +832,10 @@ rec {
inherit fetchurl stdenv;
};

win32hello = import ../development/compilers/visual-c++/test {
inherit fetchurl stdenv visualcpp;
};


### DEVELOPMENT / DEBUGGERS

0 comments on commit 08d3840

Please sign in to comment.