2021-01-20 02:09:31 +00:00
|
|
|
{ lib, stdenv, fetchgit, qt48, qmake4Hook, flex }:
|
2012-06-05 21:24:27 +00:00
|
|
|
|
|
|
|
# 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 {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "git://gitorious.org/qt-labs/jom.git";
|
2012-06-05 21:24:27 +00:00
|
|
|
rev = "c91a204b05f97eef3c73aaaba3036e20f79fd487";
|
|
|
|
sha256 = "6d3ac84f83bb045213903d9d5340c0447c8fe41671d1dcdeae5c40b66d62ccbf";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ qt48 ];
|
2016-04-16 23:52:09 +00:00
|
|
|
nativeBuildInputs = [ flex qmake4Hook ];
|
2012-06-05 21:24:27 +00:00
|
|
|
|
|
|
|
QTDIR = qt48;
|
2018-08-06 20:25:25 +00:00
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
# cmakeFlags = [ "-DWIN32=1" "-DCMAKE_SYSTEM_NAME=Windows" "-DCMAKE_RC_COMPILER=${stdenv.cc.targetPrefix}windres" ];
|
2018-07-23 20:03:18 +00:00
|
|
|
|
2021-01-15 14:45:37 +00:00
|
|
|
preBuild = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
|
2018-07-23 20:03:18 +00:00
|
|
|
export NIX_CROSS_CFLAGS_COMPILE=-fpermissive
|
|
|
|
'';
|
2012-06-05 21:24:27 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://qt-project.org/wiki/jom";
|
2012-06-05 21:24:27 +00:00
|
|
|
description = "Clone of nmake supporting multiple independent commands in parallel";
|
2021-01-15 14:45:37 +00:00
|
|
|
license = lib.licenses.gpl2Plus; # Explicitly, GPLv2 or GPLv3, but not later.
|
2012-06-05 21:24:27 +00:00
|
|
|
};
|
|
|
|
}
|