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