lol
1{ lib, stdenv, fetchgit, qt48, qmake4Hook, flex }:
2
3# At the time of committing this, the expression fails for me to cross-build in
4# both mingw32 and mingw64.
5
6stdenv.mkDerivation {
7 pname = "jom";
8 version = "1.0.11";
9
10 src = fetchgit {
11 url = "git://gitorious.org/qt-labs/jom.git";
12 rev = "c91a204b05f97eef3c73aaaba3036e20f79fd487";
13 sha256 = "6d3ac84f83bb045213903d9d5340c0447c8fe41671d1dcdeae5c40b66d62ccbf";
14 };
15
16 buildInputs = [ qt48 ];
17 nativeBuildInputs = [ flex qmake4Hook ];
18
19 QTDIR = qt48;
20
21 # cmakeFlags = [ "-DWIN32=1" "-DCMAKE_SYSTEM_NAME=Windows" "-DCMAKE_RC_COMPILER=${stdenv.cc.targetPrefix}windres" ];
22
23 preBuild = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
24 export NIX_CROSS_CFLAGS_COMPILE=-fpermissive
25 '';
26
27 meta = {
28 homepage = "https://qt-project.org/wiki/jom";
29 description = "Clone of nmake supporting multiple independent commands in parallel";
30 license = lib.licenses.gpl2Plus; # Explicitly, GPLv2 or GPLv3, but not later.
31 };
32}