nicer MSYS2 development shell

This commit is contained in:
Sebastien Bourdeauducq 2022-03-22 22:14:46 +08:00
parent f11a0776e7
commit 6d9b3abcd7
2 changed files with 12 additions and 2 deletions

View File

@ -126,11 +126,15 @@
cargo-insta
clippy
rustfmt
# MSYS2
];
};
devShells.x86_64-linux.msys2 = pkgs.mkShell {
name = "nac3-dev-shell";
buildInputs = with pkgs; [
curl
pacman
fakeroot
wineWowPackages.stable
packages.x86_64-w64-mingw32.wine-msys2
];
};

View File

@ -98,4 +98,10 @@ in rec {
'';
dontFixup = true;
};
wine-msys2 = pkgs.writeShellScriptBin "wine-msys2"
''
export WINEDEBUG=-all
export WINEPATH=Z:${msys2-env}/mingw64/bin\;Z:${llvm-nac3}/bin
${pkgs.wineWowPackages.stable}/bin/wine64 cmd
'';
}