don't just use come hardcoded directory for Odin compiler

plugins
Patrick Cleavelin 2024-01-04 14:17:20 -06:00
parent 3d0017134e
commit 32777f51a4
2 changed files with 7 additions and 1 deletions

View File

@ -17,7 +17,12 @@
extensions = [ "rust-analysis" ]; extensions = [ "rust-analysis" ];
}; };
fixed-odin = pkgs.odin.overrideAttrs (finalAttrs: prevAttr: rec { 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"; LLVM_CONFIG = "${pkgs.llvmPackages_17.llvm.dev}/bin/llvm-config";
nativeBuildInputs = with pkgs; prevAttr.nativeBuildInputs ++ [ libcxx libcxxabi ]; nativeBuildInputs = with pkgs; prevAttr.nativeBuildInputs ++ [ libcxx libcxxabi ];
postPatch = prevAttr.postPatch + '' postPatch = prevAttr.postPatch + ''

View File

@ -218,6 +218,7 @@ main :: proc() {
raylib.SetTargetFPS(60); raylib.SetTargetFPS(60);
raylib.SetExitKey(.KEY_NULL); 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); 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); raylib.SetTextureFilter(state.font.texture, .BILINEAR);
menu_bar_state := ui.MenuBarState{ menu_bar_state := ui.MenuBarState{