summary refs log tree commit diff
path: root/pkgs/os-specific/windows
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-06-05 21:24:27 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-06-05 21:24:27 +0000
commit0332f87a0bf17aa34342c8225121c992f8ed919a (patch)
tree473f849f9b66520a265d9e49d4331e0124f08bc9 /pkgs/os-specific/windows
parent430b05551604bf08827539b2f0ec3b294c923640 (diff)
downloadnixpkgs-0332f87a0bf17aa34342c8225121c992f8ed919a.tar
nixpkgs-0332f87a0bf17aa34342c8225121c992f8ed919a.tar.gz
nixpkgs-0332f87a0bf17aa34342c8225121c992f8ed919a.tar.bz2
nixpkgs-0332f87a0bf17aa34342c8225121c992f8ed919a.tar.lz
nixpkgs-0332f87a0bf17aa34342c8225121c992f8ed919a.tar.xz
nixpkgs-0332f87a0bf17aa34342c8225121c992f8ed919a.tar.zst
nixpkgs-0332f87a0bf17aa34342c8225121c992f8ed919a.zip
Adding windows jom; it does not build for me still, but it's close to it.
I think it's better to share it though. I wrote a comment about the expression
not building.


svn path=/nixpkgs/trunk/; revision=34365
Diffstat (limited to 'pkgs/os-specific/windows')
-rw-r--r--pkgs/os-specific/windows/jom/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/os-specific/windows/jom/default.nix b/pkgs/os-specific/windows/jom/default.nix
new file mode 100644
index 00000000000..2cdd63cc0eb
--- /dev/null
+++ b/pkgs/os-specific/windows/jom/default.nix
@@ -0,0 +1,36 @@
+{ stdenv, fetchgit, qt48, flex, cmake }:
+
+# At the time of committing this, the expression fails for me to cross-build in
+# both mingw32 and mingw64.
+
+stdenv.mkDerivation {
+  name = "jom-1.0.11";
+
+  src = fetchgit {
+    url = git://gitorious.org/qt-labs/jom.git;
+    rev = "c91a204b05f97eef3c73aaaba3036e20f79fd487";
+    sha256 = "6d3ac84f83bb045213903d9d5340c0447c8fe41671d1dcdeae5c40b66d62ccbf";
+  };
+
+  buildInputs = [ qt48 ];
+  buildNativeInputs = [ flex /*cmake*/ ];
+
+  QTDIR = qt48;
+  configurePhase = ''
+    qmake PREFIX=$out
+  '';
+  
+  crossAttrs = {
+    # cmakeFlags = "-DWIN32=1 -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_RC_COMPILER=${stdenv.cross.config}-windres";
+    QTDIR = qt48.hostDrv;
+    preBuild = ''
+      export NIX_CROSS_CFLAGS_COMPILE=-fpermissive
+    '';
+  };
+
+  meta = {
+    homepage = http://qt-project.org/wiki/jom;
+    description = "Clone of nmake supporting multiple independent commands in parallel";
+    license = "GPLv2+"; # Explicitly, GPLv2 or GPLv3, but not later.
+  };
+}