don't just use come hardcoded directory for Odin compiler
parent
3d0017134e
commit
32777f51a4
|
@ -17,7 +17,12 @@
|
|||
extensions = [ "rust-analysis" ];
|
||||
};
|
||||
fixed-odin = pkgs.odin.overrideAttrs (finalAttrs: prevAttr: rec {
|
||||
src = /Users/temp/Documents/personal/Odin;
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "pcleavelin";
|
||||
repo = "Odin";
|
||||
rev = "59aa05170d54edff75aed220bb1653fc369573d7";
|
||||
hash = "sha256-ZMcVugE0uRHba8jmQjTyQ9KKDUdIVSELggKDz9iSiwY=";
|
||||
};
|
||||
LLVM_CONFIG = "${pkgs.llvmPackages_17.llvm.dev}/bin/llvm-config";
|
||||
nativeBuildInputs = with pkgs; prevAttr.nativeBuildInputs ++ [ libcxx libcxxabi ];
|
||||
postPatch = prevAttr.postPatch + ''
|
||||
|
|
|
@ -218,6 +218,7 @@ main :: proc() {
|
|||
raylib.SetTargetFPS(60);
|
||||
raylib.SetExitKey(.KEY_NULL);
|
||||
|
||||
// TODO: don't just hard code a MacOS font path
|
||||
state.font = raylib.LoadFontEx("/System/Library/Fonts/Supplemental/Andale Mono.ttf", i32(state.source_font_height*2), nil, 0);
|
||||
raylib.SetTextureFilter(state.font.texture, .BILINEAR);
|
||||
menu_bar_state := ui.MenuBarState{
|
||||
|
|
Loading…
Reference in New Issue