summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-04-27 18:44:45 -0400
committerLLLL Colonq <llll@colonq>2026-04-27 18:45:08 -0400
commit7748d30575151af59844f43a0e9149b18c40f2f1 (patch)
tree1d8a69c77ece9025d0f03f61b31042d109f6f737 /flake.nix
parent4dfc38dfe988c93be7c3de4636428549935f3c4d (diff)
Add windows build
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 8312ec9..f000caf 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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"];