Files
skylar taylor-barrick 4ab652afd8 Migrate Craft Launcher to egui 0.37 (#873)
* Migrate Launcher to egui 0.37 and preserve current-main behavior

* egui037: record final published pins and local qualification

* fix(ui): gate CJK language drawing until fonts are installed

* Document migrated launcher UI contracts and regression invariants
2026-10-25 10:49:00 -04:00

99 lines
2.5 KiB
Nix

{
description = "Experimental Nix flake for ArtCraft Launcher";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = { self, nixpkgs, flake-utils, rust-overlay }:
flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ rust-overlay.overlays.default ];
};
rust = pkgs.rust-bin.stable.latest.default.override {
extensions = [ "rustfmt" "clippy" "rust-src" ];
};
version = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).workspace.package.version;
commonDeps = with pkgs; [
pkg-config
openssl
libxkbcommon
libx11
libxcursor
libxrandr
libxi
libxcb
libGL
vulkan-loader
mesa
wayland
wayland-protocols
fontconfig
freetype
alsa-lib
zlib
];
in
{
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
rust
cmake
ninja
libclang
];
buildInputs = commonDeps;
shellHook = ''
export LIBCLANG_PATH="${pkgs.libclang.lib}/lib"
export PKG_CONFIG_PATH="${pkgs.openssl.dev}/lib/pkgconfig:$PKG_CONFIG_PATH"
'';
};
packages.default = pkgs.rustPlatform.buildRustPackage {
pname = "artcraft-launcher";
version = version;
src = ./.;
cargoLock = {
lockFile = ./Cargo.lock;
# Resolve Git dependencies at the immutable revisions in Cargo.lock.
allowBuiltinFetchGit = true;
};
nativeBuildInputs = with pkgs; [
pkg-config
libclang
autoPatchelfHook
];
buildInputs = commonDeps;
runtimeDependencies = with pkgs; [
wayland
libxkbcommon
libGL
vulkan-loader
#X11 support
libx11
libxcursor
libxrandr
libxi
libxcb
];
doCheck = false;
};
apps.default = {
type = "app";
program = "${self.packages.${system}.default}/bin/artcraft-launcher";
};
});
}