diff options
| author | LLLL Colonq <llll@colonq> | 2026-04-27 18:44:45 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-04-27 18:45:08 -0400 |
| commit | 7748d30575151af59844f43a0e9149b18c40f2f1 (patch) | |
| tree | 1d8a69c77ece9025d0f03f61b31042d109f6f737 /flake.nix | |
| parent | 4dfc38dfe988c93be7c3de4636428549935f3c4d (diff) | |
Add windows build
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -34,11 +34,24 @@ make CC=wasm32-clang prefix=$out install-core ''; }; + pit-windows = pkgs.pkgsCross.mingwW64.stdenv.mkDerivation { + pname = "pit"; + version = "git"; + src = ./.; + hardeningDisable = ["all"]; + buildPhase = '' + make CC=x86_64-w64-mingw32-cc AR=x86_64-w64-mingw32-ar EXE=pit.exe + ''; + installPhase = '' + make CC=x86_64-w64-mingw32-cc AR=x86_64-w64-mingw32-ar EXE=pit.exe prefix=$out install + ''; + }; in { packages = { inherit pit; default = pit; wasm = pit-wasm; + windows = pit-windows; }; devShells.default = pkgs.mkShell { hardeningDisable = ["all"]; |
