nix cross builds

This commit is contained in:
Robin Appelman 2026-10-25 23:57:33 +01:00
commit 24001d1c2b
2 changed files with 14 additions and 7 deletions

14
flake.lock generated
View file

@ -44,11 +44,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1789480598, "lastModified": 1792968594,
"narHash": "sha256-G1jy1kz2dLJCkVjjY2PnCXEL1B2iqMlSfz01YFCBY+c=", "narHash": "sha256-4c+Xc/3HwxD5fTOCrSQJy6KYBtokL6nYL5OhGLyibSo=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "c1e026caf1750f226a20dab66594dc1ef3a34ec4", "rev": "5aa093d3c73bc70c5c489457c63c88c1d34835c0",
"revCount": 77, "revCount": 78,
"type": "git", "type": "git",
"url": "https://codeberg.org/icewind/mill-scale.git" "url": "https://codeberg.org/icewind/mill-scale.git"
}, },
@ -59,11 +59,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1788982361, "lastModified": 1792966889,
"narHash": "sha256-3rBlhAGYzg2vtJ8BcBt6ZzhmwuqXy4rpRyQfS9Db9sQ=", "narHash": "sha256-KC4evsUV5+vHNLxGwm8sjNQDO8IkRqXuEzyQm+g62XE=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "48fccf09536944ea4cb8524c0568e746b66f53eb", "rev": "4b486d8f8ec812069b7cc8d2839e48ce18d18abe",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -28,6 +28,13 @@
packages = { packages = {
demostf-edit = pkgs: pkgs.demostf-edit; demostf-edit = pkgs: pkgs.demostf-edit;
}; };
crossTargets = [
"x86_64-unknown-linux-musl"
"x86_64-pc-windows-gnu"
];
packageOpts = pkgs: {
cargoExtraArgs = "--features cli";
};
devShells.default = pkgs: devShells.default = pkgs:
pkgs.mkShell { pkgs.mkShell {