2020-04-23 20:19:12 +02:00
|
|
|
{ stdenv, lib, mkShell, conan, nsis, go, baseImageFactory }:
|
2019-03-25 17:35:01 +01:00
|
|
|
|
2020-04-23 20:19:12 +02:00
|
|
|
assert lib.assertMsg stdenv.isLinux "Building Windows app can work only on Linux!";
|
2019-05-07 08:43:53 +02:00
|
|
|
|
2019-03-25 17:35:01 +01:00
|
|
|
let
|
2019-10-01 20:52:20 +03:00
|
|
|
baseImage = baseImageFactory "windows";
|
2019-03-25 17:35:01 +01:00
|
|
|
|
2019-11-29 11:20:08 +01:00
|
|
|
in rec {
|
2020-04-23 20:19:12 +02:00
|
|
|
buildInputs = lib.optionals stdenv.isLinux [
|
2019-03-25 17:35:01 +01:00
|
|
|
conan
|
|
|
|
nsis
|
|
|
|
baseImage
|
|
|
|
go # Needed for Windows build only
|
|
|
|
];
|
2019-04-04 00:05:59 +02:00
|
|
|
|
2019-11-29 11:20:08 +01:00
|
|
|
shell = mkShell {
|
|
|
|
inherit buildInputs;
|
|
|
|
shellHook = ''
|
|
|
|
${baseImage.shellHook}
|
|
|
|
unset QT_PATH
|
|
|
|
'';
|
|
|
|
};
|
2019-03-25 17:35:01 +01:00
|
|
|
}
|