status-react/nix/desktop/windows/default.nix

24 lines
456 B
Nix

{ stdenv, lib, mkShell, conan, nsis, go, baseImageFactory }:
assert lib.assertMsg stdenv.isLinux "Building Windows app can work only on Linux!";
let
baseImage = baseImageFactory "windows";
in rec {
buildInputs = lib.optionals stdenv.isLinux [
conan
nsis
baseImage
go # Needed for Windows build only
];
shell = mkShell {
inherit buildInputs;
shellHook = ''
${baseImage.shellHook}
unset QT_PATH
'';
};
}