diff --git a/flake.nix b/flake.nix index 61c3b7e..f2a614d 100644 --- a/flake.nix +++ b/flake.nix @@ -14,7 +14,6 @@ }; native-deps = with pkgs; [ pkg-config pipewire lld clang libclang alsa-lib openssl taglib zlib libxkbcommon libGL wayland mangohud - pkgs.pkgsCross.mingwW64.buildPackages.gcc ]; in with pkgs; @@ -26,8 +25,10 @@ targets = ["x86_64-unknown-linux-gnu" "x86_64-pc-windows-gnu"]; }) cargo-bloat + pkgs.pkgsCross.mingwW64.buildPackages.gcc ] ++ native-deps; LD_LIBRARY_PATH = (lib.makeLibraryPath native-deps); + CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUSTFLAGS = "-L native=${pkgs.pkgsCross.mingwW64.windows.pthreads}/lib"; }; } );